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

1.9 KiB
Raw Permalink Blame History

Planck.js API Doc › Globals › JointDef

Interface: JointDef

Joint definitions are used to construct joints.

Hierarchy

Index

Properties

Properties

bodyA

• bodyA: Body

Defined in src/dynamics/Joint.ts:78

The first attached body.


bodyB

• bodyB: Body

Defined in src/dynamics/Joint.ts:82

The second attached body.


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 userData

• userData? : any

Inherited from JointOpt.userData

Defined in src/dynamics/Joint.ts:64

Use this to attach application specific data to your joints.