Skip to content

Interface: FrictionJointDef ​

Friction joint definition.

Extends ​

Properties ​

bodyA ​

bodyA: Body

The first attached body.

Inherited from ​

JointDef.bodyA


bodyB ​

bodyB: Body

The second attached body.

Inherited from ​

JointDef.bodyB


collideConnected? ​

optional collideConnected: boolean

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

Inherited from ​

JointDef.collideConnected


localAnchorA ​

localAnchorA: Vec2Value

The local anchor point relative to bodyA's origin.


localAnchorB ​

localAnchorB: Vec2Value

The local anchor point relative to bodyB's origin.


maxForce? ​

optional maxForce: number

The maximum friction force in N.

Inherited from ​

FrictionJointOpt.maxForce


maxTorque? ​

optional maxTorque: number

The maximum friction torque in N-m.

Inherited from ​

FrictionJointOpt.maxTorque


style? ​

optional style: Style

Styling for dev-tools.

Inherited from ​

JointDef.style


userData? ​

optional userData: any

Use this to attach application specific data to your joints.

Inherited from ​

JointDef.userData