API Documentation for:
Show:

b2FrictionJointDef Class

Defined in: b2FrictionJointDef:17
Module: Joints

Friction joint definition.

Class constructor function

Constructor

b2FrictionJointDef

()

Item Index

Methods

Methods

initialize

(
  • bodyA
  • bodyB
  • anchor
)
Void public

Defined in initialize:125

Parameters:

  • bodyA B2Body
  • bodyB B2Body
  • anchor B2Vec2

Returns:

Void:

Properties

localAnchorA

B2Vec2 public

Defined in localAnchorA:48

The local anchor point relative to bodyA's origin.

localAnchorB

B2Vec2 public

Defined in localAnchorB:57

The local anchor point relative to bodyB's origin.

maxForce

Float public

Defined in maxForce:76

The maximum friction force in N.

Default: 0.0

maxTorque

Float public

Defined in maxTorque:86

The maximum friction torque in N-m.

Default: 0.0

type

Int public

Defined in type:68

Default: b2Joint.e_frictionJoint