Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Joint

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns b2Joint

Properties

m_bodyA

m_bodyA: b2Body

m_bodyB

m_bodyB: b2Body

m_collideConnected

m_collideConnected: boolean = false

Readonly m_edgeA

m_edgeA: b2JointEdge = new b2JointEdge(this)

Readonly m_edgeB

m_edgeB: b2JointEdge = new b2JointEdge(this)

m_index

m_index: number = 0

m_islandFlag

m_islandFlag: boolean = false

m_next

m_next: b2Joint | null = null

m_prev

m_prev: b2Joint | null = null

Readonly m_type

m_type: b2JointType = b2JointType.e_unknownJoint

m_userData

m_userData: any = null

Methods

Dump

  • Dump(log: (format: string, ...args: any[]) => void): void
  • Parameters

    • log: (format: string, ...args: any[]) => void
        • (format: string, ...args: any[]): void
        • Parameters

          • format: string
          • Rest ...args: any[]

          Returns void

    Returns void

Abstract GetAnchorA

  • GetAnchorA<T>(out: T): T
  • Type parameters

    Parameters

    • out: T

    Returns T

Abstract GetAnchorB

  • GetAnchorB<T>(out: T): T
  • Type parameters

    Parameters

    • out: T

    Returns T

GetBodyA

  • Returns b2Body

GetBodyB

  • Returns b2Body

GetCollideConnected

  • GetCollideConnected(): boolean
  • Returns boolean

GetNext

  • Returns b2Joint | null

Abstract GetReactionForce

  • GetReactionForce<T>(inv_dt: number, out: T): T
  • Type parameters

    Parameters

    • inv_dt: number
    • out: T

    Returns T

Abstract GetReactionTorque

  • GetReactionTorque(inv_dt: number): number
  • Parameters

    • inv_dt: number

    Returns number

GetType

  • Returns b2JointType

GetUserData

  • GetUserData(): any
  • Returns any

Abstract InitVelocityConstraints

  • Parameters

    Returns void

IsActive

  • IsActive(): boolean
  • Returns boolean

SetUserData

  • SetUserData(data: any): void
  • Parameters

    • data: any

    Returns void

ShiftOrigin

  • ShiftOrigin(newOrigin: XY): void
  • Parameters

    • newOrigin: XY

    Returns void

Abstract SolvePositionConstraints

  • Parameters

    Returns boolean

Abstract SolveVelocityConstraints

  • Parameters

    Returns void

Generated using TypeDoc