3.3 KiB
Planck.js API Doc › Globals › FrictionJointDef
Interface: FrictionJointDef
Friction joint definition.
Hierarchy
↳ JointDef
↳ FrictionJointDef
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
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
Defined in src/dynamics/Joint.ts:64
Use this to attach application specific data to your joints.