19 #ifndef B2_MOUSE_JOINT_H 20 #define B2_MOUSE_JOINT_H 78 const b2Vec2& GetTarget()
const;
81 void SetMaxForce(
float32 force);
89 void SetDampingRatio(
float32 ratio);
90 float32 GetDampingRatio()
const;
93 void Dump() {
b2Log(
"Mouse joint dumping is not supported.\n"); }
96 void ShiftOrigin(
const b2Vec2& newOrigin);
virtual void SolveVelocityConstraints(const b2SolverData &data)=0
void b2Log(const char *string,...)
Logging function.
float32 dampingRatio
The damping ratio. 0 = no damping, 1 = critical damping.
Joint definitions are used to construct joints.
float32 frequencyHz
The response speed.
virtual void InitVelocityConstraints(const b2SolverData &data)=0
virtual bool SolvePositionConstraints(const b2SolverData &data)=0
void Dump()
The mouse joint does not support dumping.
b2JointType type
The joint type is set automatically for concrete joint types.
A 2-by-2 matrix. Stored in column-major order.
void Set(float32 x_, float32 y_)
Set this vector to some specified coordinates.