Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2PrismaticJoint

Hierarchy

Index

Constructors

constructor

Properties

Readonly m_K

m_K: b2Mat33 = new b2Mat33()

Readonly m_K2

m_K2: b2Mat22 = new b2Mat22()

Readonly m_K3

m_K3: b2Mat33 = new b2Mat33()

m_a1

m_a1: number = 0

m_a2

m_a2: number = 0

Readonly m_axis

m_axis: b2Vec2 = new b2Vec2(0, 0)

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_enableLimit

m_enableLimit: boolean = false

m_enableMotor

m_enableMotor: boolean = false

Readonly m_impulse

m_impulse: b2Vec3 = new b2Vec3(0, 0, 0)

m_index

m_index: number = 0

m_indexA

m_indexA: number = 0

m_indexB

m_indexB: number = 0

m_invIA

m_invIA: number = 0

m_invIB

m_invIB: number = 0

m_invMassA

m_invMassA: number = 0

m_invMassB

m_invMassB: number = 0

m_islandFlag

m_islandFlag: boolean = false

Readonly m_lalcA

m_lalcA: b2Vec2 = new b2Vec2()

Readonly m_lalcB

m_lalcB: b2Vec2 = new b2Vec2()

m_limitState

m_limitState: b2LimitState = b2LimitState.e_inactiveLimit

Readonly m_localAnchorA

m_localAnchorA: b2Vec2 = new b2Vec2()

Readonly m_localAnchorB

m_localAnchorB: b2Vec2 = new b2Vec2()

Readonly m_localCenterA

m_localCenterA: b2Vec2 = new b2Vec2()

Readonly m_localCenterB

m_localCenterB: b2Vec2 = new b2Vec2()

Readonly m_localXAxisA

m_localXAxisA: b2Vec2 = new b2Vec2()

Readonly m_localYAxisA

m_localYAxisA: b2Vec2 = new b2Vec2()

m_lowerTranslation

m_lowerTranslation: number = 0

m_maxMotorForce

m_maxMotorForce: number = 0

m_motorImpulse

m_motorImpulse: number = 0

m_motorMass

m_motorMass: number = 0

m_motorSpeed

m_motorSpeed: number = 0

m_next

m_next: b2Joint | null = null

Readonly m_perp

m_perp: b2Vec2 = new b2Vec2(0, 0)

m_prev

m_prev: b2Joint | null = null

Readonly m_qA

m_qA: b2Rot = new b2Rot()

Readonly m_qB

m_qB: b2Rot = new b2Rot()

Readonly m_rA

m_rA: b2Vec2 = new b2Vec2()

Readonly m_rB

m_rB: b2Vec2 = new b2Vec2()

m_referenceAngle

m_referenceAngle: number = 0

m_s1

m_s1: number = 0

m_s2

m_s2: number = 0

Readonly m_type

m_type: b2JointType = b2JointType.e_unknownJoint

m_upperTranslation

m_upperTranslation: number = 0

m_userData

m_userData: any = null

Static Private GetJointTranslation_s_axis

GetJointTranslation_s_axis: b2Vec2 = new b2Vec2()

Static Private GetJointTranslation_s_d

GetJointTranslation_s_d: b2Vec2 = new b2Vec2()

Static Private GetJointTranslation_s_pA

GetJointTranslation_s_pA: b2Vec2 = new b2Vec2()

Static Private GetJointTranslation_s_pB

GetJointTranslation_s_pB: b2Vec2 = new b2Vec2()

Static Private InitVelocityConstraints_s_P

InitVelocityConstraints_s_P: b2Vec2 = new b2Vec2()

Static Private InitVelocityConstraints_s_d

InitVelocityConstraints_s_d: b2Vec2 = new b2Vec2()

Static Private SolvePositionConstraints_s_P

SolvePositionConstraints_s_P: b2Vec2 = new b2Vec2()

Static Private SolvePositionConstraints_s_d

SolvePositionConstraints_s_d: b2Vec2 = new b2Vec2()

Static Private SolvePositionConstraints_s_impulse

SolvePositionConstraints_s_impulse: b2Vec3 = new b2Vec3()

Static Private SolvePositionConstraints_s_impulse1

SolvePositionConstraints_s_impulse1: b2Vec2 = new b2Vec2()

Static Private SolveVelocityConstraints_s_P

SolveVelocityConstraints_s_P: b2Vec2 = new b2Vec2()

Static Private SolveVelocityConstraints_s_df2

SolveVelocityConstraints_s_df2: b2Vec2 = new b2Vec2()

Static Private SolveVelocityConstraints_s_df3

SolveVelocityConstraints_s_df3: b2Vec3 = new b2Vec3()

Static Private SolveVelocityConstraints_s_f1

SolveVelocityConstraints_s_f1: b2Vec3 = new b2Vec3()

Static Private SolveVelocityConstraints_s_f2r

SolveVelocityConstraints_s_f2r: 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

EnableLimit

  • EnableLimit(flag: boolean): void
  • Parameters

    • flag: boolean

    Returns void

EnableMotor

  • EnableMotor(flag: boolean): void
  • Parameters

    • flag: boolean

    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

GetJointSpeed

  • GetJointSpeed(): number
  • Returns number

GetJointTranslation

  • GetJointTranslation(): number
  • Returns number

GetLocalAnchorA

  • GetLocalAnchorA(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetLocalAnchorB

  • GetLocalAnchorB(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetLocalAxisA

  • GetLocalAxisA(): Readonly<b2Vec2>
  • Returns Readonly<b2Vec2>

GetLowerLimit

  • GetLowerLimit(): number
  • Returns number

GetMaxMotorForce

  • GetMaxMotorForce(): number
  • Returns number

GetMotorForce

  • GetMotorForce(inv_dt: number): number
  • Parameters

    • inv_dt: number

    Returns number

GetMotorSpeed

  • GetMotorSpeed(): 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

GetReferenceAngle

  • GetReferenceAngle(): number
  • Returns number

GetType

GetUpperLimit

  • GetUpperLimit(): number
  • Returns number

GetUserData

  • GetUserData(): any
  • Returns any

InitVelocityConstraints

IsActive

  • IsActive(): boolean
  • Returns boolean

IsLimitEnabled

  • IsLimitEnabled(): boolean
  • Returns boolean

IsMotorEnabled

  • IsMotorEnabled(): boolean
  • Returns boolean

SetLimits

  • SetLimits(lower: number, upper: number): void
  • Parameters

    • lower: number
    • upper: number

    Returns void

SetMaxMotorForce

  • SetMaxMotorForce(force: number): void
  • Parameters

    • force: number

    Returns void

SetMotorSpeed

  • SetMotorSpeed(speed: number): void
  • Parameters

    • speed: number

    Returns void

SetUserData

  • SetUserData(data: any): void
  • Parameters

    • data: any

    Returns void

ShiftOrigin

  • ShiftOrigin(newOrigin: XY): void
  • Parameters

    • newOrigin: XY

    Returns void

SolvePositionConstraints

SolveVelocityConstraints

Generated using TypeDoc