#include <b2WeldJoint.h>
Public Member Functions | |
void | Dump () |
Dump to b2Log. More... | |
b2Vec2 | GetAnchorA () const |
Get the anchor point on bodyA in world coordinates. More... | |
b2Vec2 | GetAnchorB () const |
Get the anchor point on bodyB in world coordinates. More... | |
float32 | GetDampingRatio () const |
float32 | GetFrequency () const |
const b2Vec2 & | GetLocalAnchorA () const |
The local anchor point relative to bodyA's origin. More... | |
const b2Vec2 & | GetLocalAnchorB () const |
The local anchor point relative to bodyB's origin. More... | |
b2Vec2 | GetReactionForce (float32 inv_dt) const |
Get the reaction force on bodyB at the joint anchor in Newtons. More... | |
float32 | GetReactionTorque (float32 inv_dt) const |
Get the reaction torque on bodyB in N*m. More... | |
float32 | GetReferenceAngle () const |
Get the reference angle. More... | |
void | SetDampingRatio (float32 ratio) |
Set/get damping ratio. More... | |
void | SetFrequency (float32 hz) |
Set/get frequency in Hz. More... | |
Public Member Functions inherited from b2Joint | |
b2Body * | GetBodyA () |
Get the first body attached to this joint. More... | |
b2Body * | GetBodyB () |
Get the second body attached to this joint. More... | |
bool | GetCollideConnected () const |
b2Joint * | GetNext () |
Get the next joint the world joint list. More... | |
const b2Joint * | GetNext () const |
b2JointType | GetType () const |
Get the type of the concrete joint. More... | |
void * | GetUserData () const |
Get the user data pointer. More... | |
bool | IsActive () const |
Short-cut function to determine if either body is inactive. More... | |
void | SetUserData (void *data) |
Set the user data pointer. More... | |
virtual void | ShiftOrigin (const b2Vec2 &newOrigin) |
Shift the origin for any points stored in world coordinates. More... | |
Protected Member Functions | |
b2WeldJoint (const b2WeldJointDef *def) | |
void | InitVelocityConstraints (const b2SolverData &data) |
bool | SolvePositionConstraints (const b2SolverData &data) |
void | SolveVelocityConstraints (const b2SolverData &data) |
Protected Member Functions inherited from b2Joint | |
b2Joint (const b2JointDef *def) | |
virtual | ~b2Joint () |
Protected Attributes | |
float32 | m_bias |
float32 | m_dampingRatio |
float32 | m_frequencyHz |
float32 | m_gamma |
b2Vec3 | m_impulse |
int32 | m_indexA |
int32 | m_indexB |
float32 | m_invIA |
float32 | m_invIB |
float32 | m_invMassA |
float32 | m_invMassB |
b2Vec2 | m_localAnchorA |
b2Vec2 | m_localAnchorB |
b2Vec2 | m_localCenterA |
b2Vec2 | m_localCenterB |
b2Mat33 | m_mass |
b2Vec2 | m_rA |
b2Vec2 | m_rB |
float32 | m_referenceAngle |
Protected Attributes inherited from b2Joint | |
b2Body * | m_bodyA |
b2Body * | m_bodyB |
bool | m_collideConnected |
b2JointEdge | m_edgeA |
b2JointEdge | m_edgeB |
int32 | m_index |
bool | m_islandFlag |
b2Joint * | m_next |
b2Joint * | m_prev |
b2JointType | m_type |
void * | m_userData |
Friends | |
class | b2Joint |
Additional Inherited Members | |
Static Protected Member Functions inherited from b2Joint | |
static b2Joint * | Create (const b2JointDef *def, b2BlockAllocator *allocator) |
static void | Destroy (b2Joint *joint, b2BlockAllocator *allocator) |
A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate.
Definition at line 62 of file b2WeldJoint.h.
|
protected |
Definition at line 46 of file b2WeldJoint.cpp.
|
virtual |
|
virtual |
Get the anchor point on bodyA in world coordinates.
Implements b2Joint.
Definition at line 308 of file b2WeldJoint.cpp.
|
virtual |
Get the anchor point on bodyB in world coordinates.
Implements b2Joint.
Definition at line 313 of file b2WeldJoint.cpp.
|
inline |
Definition at line 86 of file b2WeldJoint.h.
|
inline |
Definition at line 82 of file b2WeldJoint.h.
|
inline |
The local anchor point relative to bodyA's origin.
Definition at line 72 of file b2WeldJoint.h.
|
inline |
The local anchor point relative to bodyB's origin.
Definition at line 75 of file b2WeldJoint.h.
Get the reaction force on bodyB at the joint anchor in Newtons.
Implements b2Joint.
Definition at line 318 of file b2WeldJoint.cpp.
Get the reaction torque on bodyB in N*m.
Implements b2Joint.
Definition at line 324 of file b2WeldJoint.cpp.
|
inline |
Get the reference angle.
Definition at line 78 of file b2WeldJoint.h.
|
protectedvirtual |
Implements b2Joint.
Definition at line 58 of file b2WeldJoint.cpp.
|
inline |
Set/get damping ratio.
Definition at line 85 of file b2WeldJoint.h.
|
inline |
Set/get frequency in Hz.
Definition at line 81 of file b2WeldJoint.h.
|
protectedvirtual |
Implements b2Joint.
Definition at line 227 of file b2WeldJoint.cpp.
|
protectedvirtual |
Implements b2Joint.
Definition at line 169 of file b2WeldJoint.cpp.
|
friend |
Definition at line 93 of file b2WeldJoint.h.
|
protected |
Definition at line 103 of file b2WeldJoint.h.
|
protected |
Definition at line 102 of file b2WeldJoint.h.
|
protected |
Definition at line 101 of file b2WeldJoint.h.
|
protected |
Definition at line 109 of file b2WeldJoint.h.
|
protected |
Definition at line 110 of file b2WeldJoint.h.
|
protected |
Definition at line 113 of file b2WeldJoint.h.
|
protected |
Definition at line 114 of file b2WeldJoint.h.
|
protected |
Definition at line 121 of file b2WeldJoint.h.
|
protected |
Definition at line 122 of file b2WeldJoint.h.
|
protected |
Definition at line 119 of file b2WeldJoint.h.
|
protected |
Definition at line 120 of file b2WeldJoint.h.
|
protected |
Definition at line 106 of file b2WeldJoint.h.
|
protected |
Definition at line 107 of file b2WeldJoint.h.
|
protected |
Definition at line 117 of file b2WeldJoint.h.
|
protected |
Definition at line 118 of file b2WeldJoint.h.
|
protected |
Definition at line 123 of file b2WeldJoint.h.
|
protected |
Definition at line 115 of file b2WeldJoint.h.
|
protected |
Definition at line 116 of file b2WeldJoint.h.
|
protected |
Definition at line 108 of file b2WeldJoint.h.