|
Box2D
2.2.1
Box2D API Reference for Kobold2D developers
|
#include <b2MouseJoint.h>
Inheritance diagram for b2MouseJointDef:
Collaboration diagram for b2MouseJointDef:Public Attributes | |
| b2Vec2 | target |
| float32 | maxForce |
| float32 | frequencyHz |
| The response speed. | |
| float32 | dampingRatio |
| The damping ratio. 0 = no damping, 1 = critical damping. | |
Mouse joint definition. This requires a world target point, tuning parameters, and the time step.
| float32 b2MouseJointDef::dampingRatio |
The damping ratio. 0 = no damping, 1 = critical damping.
| float32 b2MouseJointDef::frequencyHz |
The response speed.
| float32 b2MouseJointDef::maxForce |
The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).
The initial world target point. This is assumed to coincide with the body anchor initially.