b2WeldJoint Class
A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate.
Constructor
b2WeldJoint
(
-
weldJointDef
Parameters:
-
weldJointDef
B2WeldJointDef
Item Index
Methods
- getAnchorB
- getAnchorB
- getDampingRatio
- getLocalAnchorA
- getLocalAnchorB
- getReactionForce
- getReactionTorque
- getReferenceAngle
- getReferenceAngle
- initVelocityConstraints
- setDampingRatio
- setFrequency
- solvePositionConstraints
- solveVelocityConstraints
- create static
- destroy static
- getAnchorA
- getAnchorB
- getBodyA
- getBodyB
- getCollideConnected
- getNext
- getReactionForce
- getReactionTorque
- getType
- getUserData
- initVelocityConstraints
- isActive
- setUserData
- shiftOrigin
- solveVelocityConstraints
- solveVelocityConstraints
Properties
- m_bias
- m_dampingRatio
- m_frequencyHz
- m_gamma
- m_impulse
- m_indexA
- m_indexB
- m_invMassA
- m_invMassA
- m_invMassB
- m_invMassB
- m_K
- m_lalcA
- m_lalcB
- m_localAnchorA
- m_localAnchorB
- m_localCenterA
- m_localCenterB
- m_mass
- m_qA
- m_qB
- m_rA
- m_rB
- m_referenceAngle
- m_bodyA
- m_bodyB
- m_collideConnected
- m_edgeA
- m_edgeB
- m_index
- m_islandFlag
- m_next
- m_prev
- m_type
- m_userData
- ParentClass
Methods
getAnchorB
(
B2Vec2 | Object
public
-
[out=b2Vec2]
Parameters:
-
[out=b2Vec2]
B2Vec2 | Object= optionalreusable object
Returns:
B2Vec2 | Object:
out
getAnchorB
(
B2Vec2 | Object
public
-
[out=b2Vec2]
Parameters:
-
[out=b2Vec2]
B2Vec2 | Object= optionalreusable object
Returns:
B2Vec2 | Object:
out
getDampingRatio
()
Float
public
Get damping ratio.
Returns:
Float:
getLocalAnchorA
(
B2Vec2 | Object
public
-
[out=b2Vec2]
The local anchor point relative to bodyA's origin.
Parameters:
-
[out=b2Vec2]
B2Vec2 | Object= optionalreusable object
Returns:
B2Vec2 | Object:
out
getLocalAnchorB
(
B2Vec2 | Object
public
-
[out=b2Vec2]
The local anchor point relative to bodyA's origin.
Parameters:
-
[out=b2Vec2]
B2Vec2 | Object= optionalreusable object
Returns:
B2Vec2 | Object:
out
getReactionForce
(
B2Vec2 | Object
public
-
invDeltaTime
-
[out=b2Vec2]
Get the reaction force given the inverse time step. Unit is N.
Parameters:
-
invDeltaTime
Float -
[out=b2Vec2]
B2Vec2 | Object= optionalreusable object
Returns:
B2Vec2 | Object:
out
getReactionTorque
(
Float
public
-
invDeltaTime
Get the reaction torque given the inverse time step. Unit is N*m. This is always zero for a distance joint.
Parameters:
-
invDeltaTime
Float
Returns:
Float:
getReferenceAngle
()
Float
public
Get frequency in Hz.
Returns:
Float:
getReferenceAngle
()
Float
public
Get the reference angle.
Returns:
Float:
initVelocityConstraints
(
Void
public
-
data
Parameters:
-
data
B2SolverData
Returns:
Void:
setDampingRatio
(
Void
public
-
ratio
Set damping ratio.
Parameters:
-
ratio
Float
Returns:
Void:
setFrequency
(
Void
public
-
hz
Set frequency in Hz.
Parameters:
-
hz
Float
Returns:
Void:
solvePositionConstraints
(
Void
public
-
data
Parameters:
-
data
B2SolverData
Returns:
Void:
solveVelocityConstraints
(
Void
public
-
data
Parameters:
-
data
B2SolverData
Returns:
Void:
Properties
m_bias
Float
public
Default: 0.0
m_dampingRatio
Float
public
m_frequencyHz
Float
public
m_gamma
Float
public
Default: 0.0
m_impulse
B2Vec3
public
m_indexA
Int
public
Default: 0
m_indexB
Int
public
Default: 0
m_invMassA
Float
public
Default: 0.0
m_invMassA
Float
public
Default: 0.0
m_invMassB
Float
public
Default: 0.0
m_invMassB
Float
public
Default: 0.0