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

3.3 KiB
Raw Permalink Blame History

Planck.js API Doc › Globals › FrictionJointDef

Interface: FrictionJointDef

Friction joint definition.

Hierarchy

↳ JointDef

↳ FrictionJointOpt

↳ FrictionJointDef

Index

Properties

Properties

bodyA

• bodyA: Body

Inherited from JointDef.bodyA

Defined in src/dynamics/Joint.ts:78

The first attached body.


bodyB

• bodyB: Body

Inherited from JointDef.bodyB

Defined in src/dynamics/Joint.ts:82

The second attached body.


Optional collideConnected

• collideConnected? : boolean

Inherited from JointOpt.collideConnected

Overrides JointOpt.collideConnected

Defined in src/dynamics/Joint.ts:69

Set this flag to true if the attached bodies should collide.


localAnchorA

• localAnchorA: Vec2

Defined in src/dynamics/joint/FrictionJoint.ts:59

The local anchor point relative to bodyA's origin.


localAnchorB

• localAnchorB: Vec2

Defined in src/dynamics/joint/FrictionJoint.ts:63

The local anchor point relative to bodyB's origin.


Optional maxForce

• maxForce? : number

Inherited from FrictionJointOpt.maxForce

Defined in src/dynamics/joint/FrictionJoint.ts:46

The maximum friction force in N.


Optional maxTorque

• maxTorque? : number

Inherited from FrictionJointOpt.maxTorque

Defined in src/dynamics/joint/FrictionJoint.ts:50

The maximum friction torque in N-m.


Optional userData

• userData? : any

Inherited from JointOpt.userData

Overrides JointOpt.userData

Defined in src/dynamics/Joint.ts:64

Use this to attach application specific data to your joints.