World.hpp File Reference
#include <PlayRho/Common/Math.hpp>#include <PlayRho/Common/Range.hpp>#include <PlayRho/Dynamics/WorldConf.hpp>#include <PlayRho/Dynamics/BodyConf.hpp>#include <PlayRho/Dynamics/BodyAtty.hpp>#include <PlayRho/Dynamics/FixtureConf.hpp>#include <PlayRho/Dynamics/WorldCallbacks.hpp>#include <PlayRho/Dynamics/StepStats.hpp>#include <PlayRho/Collision/DynamicTree.hpp>#include <PlayRho/Dynamics/Contacts/ContactKey.hpp>#include <PlayRho/Dynamics/ContactAtty.hpp>#include <PlayRho/Dynamics/JointAtty.hpp>#include <PlayRho/Dynamics/IslandStats.hpp>#include <iterator>#include <vector>#include <map>#include <unordered_set>#include <memory>#include <stdexcept>#include <functional>Go to the source code of this file.
Classes | |
| class | playrho::d2::World |
| Definition of an independent and simulatable "world". More... | |
Namespaces | |
| playrho | |
| playrho::d2 | |
Functions | |
| BodyCounter | playrho::d2::GetBodyCount (const World &world) noexcept |
| Gets the body count in the given world. More... | |
| JointCounter | playrho::d2::GetJointCount (const World &world) noexcept |
| ContactCounter | playrho::d2::GetContactCount (const World &world) noexcept |
| Gets the count of contacts in the given world. More... | |
| ContactCounter | playrho::d2::GetTouchingCount (const World &world) noexcept |
| Gets the touching count for the given world. More... | |
| StepStats | playrho::d2::Step (World &world, Time delta, TimestepIters velocityIterations=8, TimestepIters positionIterations=3) |
| Steps the world ahead by a given time amount. More... | |
| size_t | playrho::d2::GetFixtureCount (const World &world) noexcept |
| Gets the count of fixtures in the given world. More... | |
| size_t | playrho::d2::GetShapeCount (const World &world) noexcept |
| Gets the count of unique shapes in the given world. More... | |
| BodyCounter | playrho::d2::GetAwakeCount (const World &world) noexcept |
| Gets the count of awake bodies in the given world. More... | |
| BodyCounter | playrho::d2::Awaken (World &world) noexcept |
| Awakens all of the bodies in the given world. More... | |
| template<class F > | |
| void | playrho::d2::SetAccelerations (World &world, F fn) noexcept |
| Sets the accelerations of all the world's bodies. More... | |
| void | playrho::d2::SetAccelerations (World &world, Acceleration acceleration) noexcept |
| Sets the accelerations of all the world's bodies to the given value. More... | |
| void | playrho::d2::SetAccelerations (World &world, LinearAcceleration2 acceleration) noexcept |
| Sets the accelerations of all the world's bodies to the given value. More... | |
| void | playrho::d2::ClearForces (World &world) noexcept |
| Clears forces. More... | |
| Body * | playrho::d2::FindClosestBody (const World &world, Length2 location) noexcept |
| Finds body in given world that's closest to the given location. More... | |
| RegStepStats & | playrho::Update (RegStepStats &lhs, const IslandStats &rhs) noexcept |
| Updates the given regular step statistics. More... | |
Detailed Description
Declarations of the World class and associated free functions.
Definition in file World.hpp.

