Component.hingeJoint 铰链关节


var hingeJoint : HingeJoint

Description描述

The HingeJoint attached to this GameObject (null if there is none attached).

HingeJoint附加到GameObject(游戏物体)(如无附加则为空)。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {public void Awake() {hingeJoint.motor.targetVelocity = 5;}}
hingeJoint.motor.targetVelocity = 5;


,