Component.hingeJoint

var hingeJoint : HingeJoint

Description

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

JavaScript
hingeJoint.motor.targetVelocity = 5;