|
b2Vec2 | GetAnchorA () const override |
| Implements b2Joint.
|
|
b2Vec2 | GetAnchorB () const override |
| Implements b2Joint.
|
|
b2Vec2 | GetReactionForce (float inv_dt) const override |
| Implements b2Joint.
|
|
float | GetReactionTorque (float inv_dt) const override |
| Implements b2Joint.
|
|
void | SetTarget (const b2Vec2 &target) |
| Use this to update the target point.
|
|
const b2Vec2 & | GetTarget () const |
|
void | SetMaxForce (float force) |
| Set/get the maximum force in Newtons.
|
|
float | GetMaxForce () const |
|
void | SetStiffness (float stiffness) |
| Set/get the linear stiffness in N/m.
|
|
float | GetStiffness () const |
|
void | SetDamping (float damping) |
| Set/get linear damping in N*s/m.
|
|
float | GetDamping () const |
|
void | Dump () override |
| The mouse joint does not support dumping.
|
|
void | ShiftOrigin (const b2Vec2 &newOrigin) override |
| Implement b2Joint::ShiftOrigin.
|
|
b2JointType | GetType () const |
| Get the type of the concrete joint.
|
|
b2Body * | GetBodyA () |
| Get the first body attached to this joint.
|
|
b2Body * | GetBodyB () |
| Get the second body attached to this joint.
|
|
b2Joint * | GetNext () |
| Get the next joint the world joint list.
|
|
const b2Joint * | GetNext () const |
|
b2JointUserData & | GetUserData () |
| Get the user data pointer.
|
|
const b2JointUserData & | GetUserData () const |
|
bool | IsEnabled () const |
| Short-cut function to determine if either body is enabled.
|
|
bool | GetCollideConnected () const |
|
virtual void | Draw (b2Draw *draw) const |
| Debug draw this joint.
|
|
A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. NOTE: this joint is not documented in the manual because it was developed to be used in the testbed. If you want to learn how to use the mouse joint, look at the testbed.