1.6 KiB
1.6 KiB
Planck.js API Doc › Globals › RopeJointOpt
Interface: RopeJointOpt
Rope joint definition. This requires two body anchor points and a maximum lengths. Note: by default the connected objects will not collide. see collideConnected in JointDef.
Hierarchy
-
↳ RopeJointOpt
Index
Properties
Properties
Optional collideConnected
• collideConnected? : boolean
Inherited from JointOpt.collideConnected
Defined in src/dynamics/Joint.ts:69
Set this flag to true if the attached bodies should collide.
Optional maxLength
• maxLength? : number
Defined in src/dynamics/joint/RopeJoint.ts:49
The maximum length of the rope. Warning: this must be larger than linearSlop or the joint will have no effect.
Optional userData
• userData? : any
Inherited from JointOpt.userData
Defined in src/dynamics/Joint.ts:64
Use this to attach application specific data to your joints.