Class b2FrictionJointDef

Friction joint defintion.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): b2FrictionJointDef

Constructor.

Returns

b2FrictionJointDef

Properties

public bodyA: b2Body

The first attached body.

public bodyB: b2Body

The second attached body.

public collideConnected: boolean

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

public localAnchorA: b2Vec2

The local anchor point relative to body1's origin.

public localAnchorB: b2Vec2

The local anchor point relative to body2's origin.

public maxForce: number

The maximum force in N.

public maxTorque: number

The maximum friction torque in N-m.

public type: number

The joint type is set automatically for concrete joint types.

public userData: any

Use this to attach application specific data to your joints.

Methods

public Initialize(bA: b2Body, bB: b2Body, anchor: b2Vec2)

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.

Parameters