2021-05-11 18:30:36 -07:00

1.6 KiB
Raw Permalink Blame History

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

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.