The Position of the anchor around which the joints motion is constrained.
The Position is defined in local space.
hingeJoint.anchor = Vector3 (2, 0, 0);
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { hingeJoint.anchor = new Vector3(2, 0, 0); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: hingeJoint.anchor = Vector3(2, 0, 0)