Body.hpp File Reference
#include <PlayRho/Common/Math.hpp>#include <PlayRho/Common/Range.hpp>#include <PlayRho/Common/BoundedValue.hpp>#include <PlayRho/Dynamics/BodyType.hpp>#include <PlayRho/Dynamics/Fixture.hpp>#include <PlayRho/Dynamics/Contacts/ContactKey.hpp>#include <PlayRho/Dynamics/Joints/JointKey.hpp>#include <PlayRho/Dynamics/MovementConf.hpp>#include <PlayRho/Collision/MassData.hpp>#include <vector>#include <memory>#include <cassert>#include <utility>#include <iterator>Go to the source code of this file.
Classes | |
| class | playrho::d2::Body |
| Physical entity that exists within a World. More... | |
Namespaces | |
| playrho | |
| playrho::d2 | |
Functions | |
| Acceleration | playrho::d2::GetAcceleration (const Body &body) noexcept |
| Gets the given body's acceleration. More... | |
| void | playrho::d2::SetAcceleration (Body &body, Acceleration value) noexcept |
| Sets the accelerations on the given body. More... | |
| Acceleration | playrho::d2::CalcGravitationalAcceleration (const Body &body) noexcept |
| Calculates the gravitationally associated acceleration for the given body within its world. More... | |
| bool | playrho::d2::Awaken (Body &body) noexcept |
| Awakens the body if it's asleep. More... | |
| bool | playrho::d2::Unawaken (Body &body) noexcept |
| Puts the body to sleep if it's awake. More... | |
| bool | playrho::d2::ShouldCollide (const Body &lhs, const Body &rhs) noexcept |
| Should collide. More... | |
| Position | playrho::d2::GetPosition1 (const Body &body) noexcept |
| Gets the "position 1" Position information for the given body. More... | |
| Mass | playrho::d2::GetMass (const Body &body) noexcept |
| Gets the mass of the body. More... | |
| void | playrho::d2::SetLinearAcceleration (Body &body, LinearAcceleration2 value) noexcept |
| Sets the given linear acceleration of the given body. More... | |
| void | playrho::d2::SetAngularAcceleration (Body &body, AngularAcceleration value) noexcept |
| Sets the given angular acceleration of the given body. More... | |
| void | playrho::d2::ApplyLinearAcceleration (Body &body, LinearAcceleration2 amount) |
| Applies the given linear acceleration to the given body. More... | |
| void | playrho::d2::SetForce (Body &body, Force2 force, Length2 point) noexcept |
| Sets the given amount of force at the given point to the given body. More... | |
| void | playrho::d2::ApplyForce (Body &body, Force2 force, Length2 point) noexcept |
| Apply a force at a world point. More... | |
| void | playrho::d2::ApplyForceToCenter (Body &body, Force2 force) noexcept |
| Apply a force to the center of mass. More... | |
| void | playrho::d2::SetTorque (Body &body, Torque torque) noexcept |
| Sets the given amount of torque to the given body. More... | |
| void | playrho::d2::ApplyTorque (Body &body, Torque torque) noexcept |
| Applies a torque. More... | |
| void | playrho::d2::ApplyLinearImpulse (Body &body, Momentum2 impulse, Length2 point) noexcept |
| Applies an impulse at a point. More... | |
| void | playrho::d2::ApplyAngularImpulse (Body &body, AngularMomentum impulse) noexcept |
| Applies an angular impulse. More... | |
| Force2 | playrho::d2::GetCentripetalForce (const Body &body, Length2 axis) |
| Gets the centripetal force necessary to put the body into an orbit having the given radius. More... | |
| RotInertia | playrho::d2::GetRotInertia (const Body &body) noexcept |
| Gets the rotational inertia of the body. More... | |
| RotInertia | playrho::d2::GetLocalRotInertia (const Body &body) noexcept |
| Gets the rotational inertia of the body about the local origin. More... | |
| LinearVelocity2 | playrho::d2::GetLinearVelocity (const Body &body) noexcept |
| Gets the linear velocity of the center of mass. More... | |
| AngularVelocity | playrho::d2::GetAngularVelocity (const Body &body) noexcept |
| Gets the angular velocity. More... | |
| void | playrho::d2::SetLinearVelocity (Body &body, const LinearVelocity2 v) noexcept |
| Sets the linear velocity of the center of mass. More... | |
| void | playrho::d2::SetAngularVelocity (Body &body, AngularVelocity omega) noexcept |
| Sets the angular velocity. More... | |
| Length2 | playrho::d2::GetWorldPoint (const Body &body, const Length2 localPoint) noexcept |
| Gets the world coordinates of a point given in coordinates relative to the body's origin. More... | |
| Length2 | playrho::d2::GetWorldVector (const Body &body, const Length2 localVector) noexcept |
| Gets the world coordinates of a vector given the local coordinates. More... | |
| UnitVec | playrho::d2::GetWorldVector (const Body &body, const UnitVec localVector) noexcept |
| Gets the world vector for the given local vector from the given body's transformation. More... | |
| Length2 | playrho::d2::GetLocalPoint (const Body &body, const Length2 worldPoint) noexcept |
| Gets a local point relative to the body's origin given a world point. More... | |
| UnitVec | playrho::d2::GetLocalVector (const Body &body, const UnitVec uv) noexcept |
| Gets a locally oriented unit vector given a world oriented unit vector. More... | |
| LinearVelocity2 | playrho::d2::GetLinearVelocityFromWorldPoint (const Body &body, const Length2 worldPoint) noexcept |
| Gets the linear velocity from a world point attached to this body. More... | |
| LinearVelocity2 | playrho::d2::GetLinearVelocityFromLocalPoint (const Body &body, const Length2 localPoint) noexcept |
| Gets the linear velocity from a local point. More... | |
| Force2 | playrho::d2::GetForce (const Body &body) noexcept |
| Gets the net force that the given body is currently experiencing. More... | |
| Torque | playrho::d2::GetTorque (const Body &body) noexcept |
| Gets the net torque that the given body is currently experiencing. More... | |
| Velocity | playrho::d2::Cap (Velocity velocity, Time h, MovementConf conf) noexcept |
| Caps velocity. More... | |
| Velocity | playrho::d2::GetVelocity (const Body &body, Time h) noexcept |
| Gets the velocity of the body after the given time accounting for the body's acceleration and capped by the given configuration. More... | |
| BodyCounter | playrho::d2::GetWorldIndex (const Body *body) noexcept |
| Gets the world index for the given body. More... | |
| std::size_t | playrho::d2::GetFixtureCount (const Body &body) noexcept |
| Gets the fixture count of the given body. More... | |
| void | playrho::d2::RotateAboutWorldPoint (Body &body, Angle amount, Length2 worldPoint) |
| Rotates a body a given amount around a point in world coordinates. More... | |
| void | playrho::d2::RotateAboutLocalPoint (Body &body, Angle amount, Length2 localPoint) |
| Rotates a body a given amount around a point in body local coordinates. More... | |
| Length2 | playrho::d2::GetLocation (const Body &body) noexcept |
| Gets the body's origin location. More... | |
| Angle | playrho::d2::GetAngle (const Body &body) noexcept |
| Gets the body's angle. More... | |
| Transformation | playrho::d2::GetTransformation (const Body &body) noexcept |
| Gets the body's transformation. More... | |
| void | playrho::d2::SetTransformation (Body &body, const Transformation &xfm) noexcept |
| Sets the body's transformation. More... | |
| Position | playrho::d2::GetPosition (const Body &body) noexcept |
| Gets the body's position. More... | |
| void | playrho::d2::SetLocation (Body &body, Length2 value) noexcept |
| Sets the body's location. More... | |
| void | playrho::d2::SetAngle (Body &body, Angle value) noexcept |
| Sets the body's angular orientation. More... | |
Detailed Description
Declarations of the Body class, and free functions associated with it.
Definition in file Body.hpp.

