Component.hingeJoint Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.hingeJoint

var hingeJoint : HingeJoint

Description

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

hingeJoint.motor.targetVelocity = 5;