Constraint for a body.
More...
#include <BodyConstraint.hpp>
Constraint for a body.
Data related to body constraint processing.
- Note
- Only position and velocity is independently changeable after construction.
-
This data structure is 40-bytes large (with 4-byte Real on at least one 64-bit platform).
- Examples
- PulleyJoint.cpp, and TargetJoint.cpp.
◆ GetInvMass()
InvMass playrho::d2::BodyConstraint::GetInvMass |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetInvRotInertia()
InvRotInertia playrho::d2::BodyConstraint::GetInvRotInertia |
( |
| ) |
const |
|
inlinenoexcept |
◆ SetPosition()
Sets the position of the body.
- Parameters
-
value | A valid position value to set for the represented body. |
- Warning
- Behavior is undefined if the given value is not valid.
◆ SetVelocity()
Sets the velocity of the body.
- Parameters
-
value | A valid velocity value to set for the represented body. |
- Warning
- Behavior is undefined if the given value is not valid.
The documentation for this class was generated from the following file: