#include <b2_mouse_joint.h>
Public Member Functions | |
b2MouseJointDef () | |
![]() | |
b2JointDef () | |
Public Attributes | |
float | damping |
The linear damping in N*s/m. More... | |
float | maxForce |
float | stiffness |
The linear stiffness in N/m. More... | |
b2Vec2 | target |
![]() | |
b2Body * | bodyA |
The first attached body. More... | |
b2Body * | bodyB |
The second attached body. More... | |
bool | collideConnected |
Set this flag to true if the attached bodies should collide. More... | |
b2JointType | type |
The joint type is set automatically for concrete joint types. More... | |
b2JointUserData | userData |
Use this to attach application specific data to your joints. More... | |
Mouse joint definition. This requires a world target point, tuning parameters, and the time step.
Definition at line 31 of file b2_mouse_joint.h.
|
inline |
Definition at line 33 of file b2_mouse_joint.h.
float b2MouseJointDef::damping |
The linear damping in N*s/m.
Definition at line 55 of file b2_mouse_joint.h.
float 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).
Definition at line 49 of file b2_mouse_joint.h.
float b2MouseJointDef::stiffness |
The linear stiffness in N/m.
Definition at line 52 of file b2_mouse_joint.h.
b2Vec2 b2MouseJointDef::target |
The initial world target point. This is assumed to coincide with the body anchor initially.
Definition at line 44 of file b2_mouse_joint.h.