Constraint for a body. More...
#include <playrho/d2/BodyConstraint.hpp>
Public Member Functions | |
| constexpr | BodyConstraint (InvMass invMass, InvRotInertia invRotI, const Length2 &localCenter, const Position &position, const Velocity &velocity) noexcept |
| Initializing constructor. More... | |
| InvMass | GetInvMass () const noexcept |
| Gets the inverse mass of this body representation. More... | |
| InvRotInertia | GetInvRotInertia () const noexcept |
| Gets the inverse rotational inertia of this body representation. More... | |
| Length2 | GetLocalCenter () const noexcept |
| Gets the location of the body's center of mass in local coordinates. | |
| Position | GetPosition () const noexcept |
| Gets the position of the body. | |
| Velocity | GetVelocity () const noexcept |
| Gets the velocity of the body. | |
| BodyConstraint & | SetPosition (const Position &value) noexcept |
| Sets the position of the body. More... | |
| BodyConstraint & | SetVelocity (const Velocity &value) noexcept |
| Sets the velocity of the body. More... | |
Constraint for a body.
Data related to body constraint processing.
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Gets the inverse mass of this body representation.
|
inlinenoexcept |
Gets the inverse rotational inertia of this body representation.
|
inlinenoexcept |
Sets the position of the body.
| value | A valid position value to set for the represented body. |
value is valid - i.e. IsValid(value) is true. GetPosition() returns the value to be set.
|
inlinenoexcept |
Sets the velocity of the body.
| value | A valid velocity value to set for the represented body. |
value is valid - i.e. IsValid(value) is true. GetVelocity() returns the value to be set.