Appearance
Interface: DistanceJointOpt
Distance joint definition. This requires defining an anchor point on both bodies and the non-zero length of the distance joint. The definition uses local anchor points so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game. Warning: Do not use a zero or short length.
Extends
Extended by
Properties
collideConnected?
optionalcollideConnected:boolean
Set this flag to true if the attached bodies should collide.
Inherited from
dampingRatio?
optionaldampingRatio:number
The damping ratio. 0 = no damping, 1 = critical damping.
frequencyHz?
optionalfrequencyHz:number
The mass-spring-damper frequency in Hertz. A value of 0 disables softness.
length?
optionallength:number
Distance length.
style?
optionalstyle:Style
Styling for dev-tools.
Inherited from
userData?
optionaluserData:any
Use this to attach application specific data to your joints.