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
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
void Dump()
The mouse joint does not support dumping.
A 2-by-2 matrix. Stored in column-major order.
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble f