Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2MouseJoint

Hierarchy

Index

Constructors

constructor

Properties

Readonly m_C

m_C: b2Vec2 = new b2Vec2()

Readonly m_K

m_K: b2Mat22 = new b2Mat22()

m_beta

m_beta: number = 0

m_bodyA

m_bodyA: b2Body

m_bodyB

m_bodyB: b2Body

m_collideConnected

m_collideConnected: boolean = false

m_dampingRatio

m_dampingRatio: number = 0

Readonly m_edgeA

m_edgeA: b2JointEdge = new b2JointEdge(this)

Readonly m_edgeB

m_edgeB: b2JointEdge = new b2JointEdge(this)

m_frequencyHz

m_frequencyHz: number = 0

m_gamma

m_gamma: number = 0

Readonly m_impulse

m_impulse: b2Vec2 = new b2Vec2()

m_index

m_index: number = 0

m_indexA

m_indexA: number = 0

m_indexB

m_indexB: number = 0

m_invIB

m_invIB: number = 0

m_invMassB

m_invMassB: number = 0

m_islandFlag

m_islandFlag: boolean = false

Readonly m_lalcB

m_lalcB: b2Vec2 = new b2Vec2()

Readonly m_localAnchorB

m_localAnchorB: b2Vec2 = new b2Vec2()

Readonly m_localCenterB

m_localCenterB: b2Vec2 = new b2Vec2()

Readonly m_mass

m_mass: b2Mat22 = new b2Mat22()

m_maxForce

m_maxForce: number = 0

m_next

m_next: b2Joint | null = null

m_prev

m_prev: b2Joint | null = null

Readonly m_qB

m_qB: b2Rot = new b2Rot()

Readonly m_rB

m_rB: b2Vec2 = new b2Vec2()

Readonly m_targetA

m_targetA: b2Vec2 = new b2Vec2()

Readonly m_type

m_type: b2JointType = b2JointType.e_unknownJoint

m_userData

m_userData: any = null

Static Private SolveVelocityConstraints_s_Cdot

SolveVelocityConstraints_s_Cdot: b2Vec2 = new b2Vec2()

Static Private SolveVelocityConstraints_s_impulse

SolveVelocityConstraints_s_impulse: b2Vec2 = new b2Vec2()

Static Private SolveVelocityConstraints_s_oldImpulse

SolveVelocityConstraints_s_oldImpulse: b2Vec2 = new b2Vec2()

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

GetAnchorA

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

    Parameters

    • out: T

    Returns T

GetAnchorB

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

    Parameters

    • out: T

    Returns T

GetBodyA

  • Returns b2Body

GetBodyB

  • Returns b2Body

GetCollideConnected

  • GetCollideConnected(): boolean

GetDampingRatio

  • GetDampingRatio(): number
  • Returns number

GetFrequency

  • GetFrequency(): number
  • Returns number

GetMaxForce

  • GetMaxForce(): number
  • Returns number

GetNext

  • Returns b2Joint | null

GetReactionForce

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

    Parameters

    • inv_dt: number
    • out: T

    Returns T

GetReactionTorque

  • GetReactionTorque(inv_dt: number): number
  • Parameters

    • inv_dt: number

    Returns number

GetTarget

  • Returns b2Vec2

GetType

GetUserData

  • GetUserData(): any
  • Returns any

InitVelocityConstraints

IsActive

  • IsActive(): boolean
  • Returns boolean

SetDampingRatio

  • SetDampingRatio(ratio: number): void
  • Parameters

    • ratio: number

    Returns void

SetFrequency

  • SetFrequency(hz: number): void
  • Parameters

    • hz: number

    Returns void

SetMaxForce

  • SetMaxForce(maxForce: number): void
  • Parameters

    • maxForce: number

    Returns void

SetTarget

  • SetTarget(target: b2Vec2): void
  • Parameters

    Returns void

SetUserData

  • SetUserData(data: any): void
  • Parameters

    • data: any

    Returns void

ShiftOrigin

  • ShiftOrigin(newOrigin: b2Vec2): void
  • Parameters

    Returns void

SolvePositionConstraints

SolveVelocityConstraints

Generated using TypeDoc