b2WheelJoint Class
Constructor
b2WheelJoint
    
        - 
                    
                        
wheelJointDef 
Parameters:
- 
                    
                        
wheelJointDefB2WheelJointDef 
Item Index
Methods
- enableMotor
 - getAnchorB
 - getAnchorB
 - getJointTranslation
 - getLinearOffset
 - getLocalAnchorA
 - getLocalAnchorB
 - getLocalAxisA
 - getMaxMotorTorque
 - getMotorSpeed
 - getMotorTorque
 - getReactionForce
 - getReactionTorque
 - getSpringFrequencyHz
 - getSpringFrequencyHz
 - initVelocityConstraints
 - setMaxMotorTorque
 - setMotorSpeed
 - setSpringDampingRatio
 - setSpringFrequencyHz
 - solveVelocityConstraints
 - create static
 - destroy static
 - getAnchorA
 - getAnchorB
 - getBodyA
 - getBodyB
 - getCollideConnected
 - getNext
 - getReactionForce
 - getReactionTorque
 - getType
 - getUserData
 - initVelocityConstraints
 - isActive
 - setUserData
 - shiftOrigin
 - solveVelocityConstraints
 - solveVelocityConstraints
 
Properties
- m_ax
 - m_ay
 - m_bias
 - m_dampingRatio
 - m_enableLimit
 - m_enableMotor
 - m_frequencyHz
 - m_gamma
 - m_impulse
 - m_indexA
 - m_indexB
 - m_invIA
 - m_invIB
 - m_invMassA
 - m_invMassB
 - m_lalcA
 - m_lalcB
 - m_limitState
 - m_localAnchorA
 - m_localAnchorB
 - m_localCenterA
 - m_localCenterB
 - m_localXAxisA
 - m_localYAxisA
 - m_mass
 - m_maxMotorForce
 - m_motorImpulse
 - m_motorMass
 - m_motorSpeed
 - m_qA
 - m_qB
 - m_rA
 - m_rB
 - m_sAx
 - m_sAy
 - m_sBx
 - m_sBy
 - m_springImpulse
 - m_springMass
 - m_bodyA
 - m_bodyB
 - m_collideConnected
 - m_edgeA
 - m_edgeB
 - m_index
 - m_islandFlag
 - m_next
 - m_prev
 - m_type
 - m_userData
 - ParentClass
 
Methods
enableMotor
    
        - 
                    
                        
flag 
Set the target angular offset, in radians.
Parameters:
- 
                    
                        
flagBoolean 
Returns:
getAnchorB
    
        - 
                    
                        
[out=b2Vec2] 
Parameters:
- 
                    
                        
[out=b2Vec2]B2Vec2 | Object= optionalreusable object
 
Returns:
out
getAnchorB
    
        - 
                    
                        
[out=b2Vec2] 
Parameters:
- 
                    
                        
[out=b2Vec2]B2Vec2 | Object= optionalreusable object
 
Returns:
out
getJointTranslation
    
        ()
    
    
        
            Float
        
    
    
    
        public
    
    
    
    
    
    
    Get the position correction factor in the range [0,1].
Returns:
getLocalAnchorA
    
        - 
                    
                        
[out=b2Vec2] 
The local anchor point relative to bodyA's origin.
Parameters:
- 
                    
                        
[out=b2Vec2]B2Vec2 | Object= optionalreusable object
 
Returns:
out
getLocalAnchorB
    
        - 
                    
                        
[out=b2Vec2] 
The local anchor point relative to bodyA's origin.
Parameters:
- 
                    
                        
[out=b2Vec2]B2Vec2 | Object= optionalreusable object
 
Returns:
out
getLocalAxisA
    
        - 
                    
                        
out 
The local joint axis relative to bodyA.
Parameters:
- 
                    
                        
outFloat 
Returns:
getMaxMotorTorque
    
        ()
    
    
        
            Float
        
    
    
    
        public
    
    
    
    
    
    
    Get the maximum friction torque in N*m.
Returns:
getMotorSpeed
    
        ()
    
    
        
            Float
        
    
    
    
        public
    
    
    
    
    
    
    Get the motor speed, usually in radians per second.
Returns:
getMotorTorque
    
        - 
                    
                        
invDeltaTime 
Get the current motor torque given the inverse time step, usually in N-m.
Parameters:
- 
                    
                        
invDeltaTimeFloat 
Returns:
getReactionForce
    
        - 
                    
                        
invDeltaTime - 
                    
                        
[out=b2Vec2] 
Get the reaction force given the inverse time step. Unit is N.
Parameters:
- 
                    
                        
invDeltaTimeFloat - 
                    
                        
[out=b2Vec2]B2Vec2 | Object= optionalreusable object
 
Returns:
out
getReactionTorque
    
        - 
                    
                        
invDeltaTime 
Get the reaction torque given the inverse time step. Unit is N*m. This is always zero for a distance joint.
Parameters:
- 
                    
                        
invDeltaTimeFloat 
Returns:
getSpringFrequencyHz
    
        ()
    
    
        
            Float
        
    
    
    
        public
    
    
    
    
    
    
    Returns:
getSpringFrequencyHz
    
        ()
    
    
        
            Float
        
    
    
    
        public
    
    
    
    
    
    
    Returns:
initVelocityConstraints
    
        - 
                    
                        
data 
Parameters:
- 
                    
                        
dataB2SolverData 
Returns:
setMaxMotorTorque
    
        - 
                    
                        
torque 
Set the maximum motor force, usually in N-m.
Parameters:
- 
                    
                        
torqueFloat 
Returns:
setMotorSpeed
    
        - 
                    
                        
speed 
Set the motor speed, usually in radians per second.
Parameters:
- 
                    
                        
speedB2Vec2 | Object= 
Returns:
setSpringDampingRatio
    
        - 
                    
                        
ratio 
Parameters:
- 
                    
                        
ratioFloat 
Returns:
setSpringFrequencyHz
    
        - 
                    
                        
hz 
Parameters:
- 
                    
                        
hzFloat 
Returns:
solveVelocityConstraints
    
        - 
                    
                        
data 
Parameters:
- 
                    
                        
dataB2SolverData 
Returns:
Properties
m_ax
    B2Vec2
    
    
        public
    
    
    
    
    m_ay
    B2Vec2
    
    
        public
    
    
    
    
    m_bias
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_dampingRatio
    Float
    
    
        public
    
    
    
    
    m_frequencyHz
    Float
    
    
        public
    
    
    
    
    m_gamma
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_impulse
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_indexA
    Int
    
    
        public
    
    
    
    
    Default: 0
m_indexB
    Int
    
    
        public
    
    
    
    
    Default: 0
m_invIA
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_invIB
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_invMassA
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_invMassB
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_lalcA
    B2Vec2
    
    
        public
    
    
    
    
    m_lalcB
    B2Vec2
    
    
        public
    
    
    
    
    m_limitState
    Int
    
    
        public
    
    
    
    
    m_localAnchorA
    B2Vec2
    
    
        public
    
    
    
    
    m_localAnchorB
    B2Vec2
    
    
        public
    
    
    
    
    m_localCenterA
    B2Vec2
    
    
        public
    
    
    
    
    m_localCenterB
    B2Vec2
    
    
        public
    
    
    
    
    m_localXAxisA
    B2Vec2
    
    
        public
    
    
    
    
    m_localYAxisA
    B2Vec2
    
    
        public
    
    
    
    
    m_mass
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_maxMotorForce
    Float
    
    
        public
    
    
    
    
    m_motorImpulse
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_motorMass
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_motorSpeed
    Float
    
    
        public
    
    
    
    
    m_qA
    B2Rot
    
    
        public
    
    
    
    
    m_qB
    B2Rot
    
    
        public
    
    
    
    
    m_rA
    B2Vec2
    
    
        public
    
    
    
    
    m_rB
    B2Vec2
    
    
        public
    
    
    
    
    m_sAx
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_sAy
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_sBx
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_sBy
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_springImpulse
    Float
    
    
        public
    
    
    
    
    Default: 0.0
m_springMass
    Float
    
    
        public
    
    
    
    
    Default: 0.0
