Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Joint<UserData>

Joints are used to connect bodies to each other or to fixed world position.

Type parameters

  • UserData = any

Hierarchy

Index

Constructors

constructor

Properties

Optional bodyA

bodyA: Body<any>

Optional bodyB

bodyB: Body<any>

id

id: number = ...

impulse

impulse: number = 0

offsetA

offsetA: Vector

offsetB

offsetB: Vector

pointA

pointA: Vector

pointB

pointB: Vector

share

share: number = 0

type

type: JointType = 0

Optional userData

userData: UserData

worldPointA

worldPointA: Vector

worldPointB

worldPointB: Vector

Static Protected vecTemp

vecTemp: Vector[] = ...

Methods

getWorldPointA

  • Returns the world-space position of 'pointA'.

    Returns Vector

    The world-space position of 'pointA'

getWorldPointB

  • Returns the world-space position of 'pointB'.

    Returns Vector

    The world-space position of 'pointB'

Abstract preSovle

  • preSovle(): void

setBodyA

  • setBodyA(body?: Body<any>): void
  • Sets joint.bodyA to the given body. Body can be undefined.

    Parameters

    • Optional body: Body<any>

    Returns void

setBodyB

  • setBodyB(body?: Body<any>): void
  • Sets joint.bodyB to the given body. Body can be undefined.

    Parameters

    • Optional body: Body<any>

    Returns void

Abstract solve

  • solve(): void

Abstract warmStart

  • warmStart(): void

Generated using TypeDoc