Joint.anchorvar anchor : Vector3DescriptionThe Position of the anchor around which the joints motion is constrained. The Position is defined in local space.
JavaScripts
hingeJoint.anchor = Vector3 (2, 0, 0);
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { hingeJoint.anchor = new Vector3(2, 0, 0); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): hingeJoint.anchor = Vector3(2, 0, 0) |
