Body.cpp File Reference
#include <PlayRho/Dynamics/Body.hpp>#include <PlayRho/Dynamics/BodyConf.hpp>#include <PlayRho/Dynamics/Fixture.hpp>#include <PlayRho/Dynamics/World.hpp>#include <PlayRho/Dynamics/Contacts/Contact.hpp>#include <PlayRho/Dynamics/Joints/Joint.hpp>#include <PlayRho/Common/WrongState.hpp>#include <PlayRho/Dynamics/WorldAtty.hpp>#include <iterator>#include <type_traits>#include <utility>Go to the source code of this file.
Namespaces | |
| playrho | |
| playrho::d2 | |
Functions | |
| bool | playrho::d2::ShouldCollide (const Body &lhs, const Body &rhs) noexcept |
| Should collide. More... | |
| BodyCounter | playrho::d2::GetWorldIndex (const Body *body) noexcept |
| Gets the world index for the given body. 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... | |
| Velocity | playrho::d2::Cap (Velocity velocity, Time h, MovementConf conf) noexcept |
| Caps velocity. 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... | |
| 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... | |
| Acceleration | playrho::d2::CalcGravitationalAcceleration (const Body &body) noexcept |
| Calculates the gravitationally associated acceleration for the given body within its world. More... | |

