Options
All
  • Public
  • Public/Protected
  • All
Menu

Friction joint defintion.

Hierarchy

Index

Constructors

constructor

Properties

bodyA

bodyA: b2Body

The first attached body.

bodyB

bodyB: b2Body

The second attached body.

collideConnected

collideConnected: boolean

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

localAnchorA

localAnchorA: b2Vec2

The local anchor point relative to body1's origin.

localAnchorB

localAnchorB: b2Vec2

The local anchor point relative to body2's origin.

maxForce

maxForce: number

The maximum force in N.

maxTorque

maxTorque: number

The maximum friction torque in N-m.

type

type: number

The joint type is set automatically for concrete joint types.

userData

userData: any

Use this to attach application specific data to your joints.

Methods

Initialize

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

    Parameters

    Returns void

Generated using TypeDoc