World.cpp File Reference
#include <PlayRho/Dynamics/World.hpp>#include <PlayRho/Dynamics/Body.hpp>#include <PlayRho/Dynamics/BodyConf.hpp>#include <PlayRho/Dynamics/BodyAtty.hpp>#include <PlayRho/Dynamics/StepConf.hpp>#include <PlayRho/Dynamics/Fixture.hpp>#include <PlayRho/Dynamics/FixtureAtty.hpp>#include <PlayRho/Dynamics/FixtureProxy.hpp>#include <PlayRho/Dynamics/Island.hpp>#include <PlayRho/Dynamics/JointAtty.hpp>#include <PlayRho/Dynamics/ContactAtty.hpp>#include <PlayRho/Dynamics/MovementConf.hpp>#include <PlayRho/Dynamics/ContactImpulsesList.hpp>#include <PlayRho/Dynamics/Joints/Joint.hpp>#include <PlayRho/Dynamics/Joints/JointVisitor.hpp>#include <PlayRho/Dynamics/Joints/RevoluteJoint.hpp>#include <PlayRho/Dynamics/Joints/PrismaticJoint.hpp>#include <PlayRho/Dynamics/Joints/DistanceJoint.hpp>#include <PlayRho/Dynamics/Joints/PulleyJoint.hpp>#include <PlayRho/Dynamics/Joints/TargetJoint.hpp>#include <PlayRho/Dynamics/Joints/GearJoint.hpp>#include <PlayRho/Dynamics/Joints/WheelJoint.hpp>#include <PlayRho/Dynamics/Joints/WeldJoint.hpp>#include <PlayRho/Dynamics/Joints/FrictionJoint.hpp>#include <PlayRho/Dynamics/Joints/RopeJoint.hpp>#include <PlayRho/Dynamics/Joints/MotorJoint.hpp>#include <PlayRho/Dynamics/Contacts/Contact.hpp>#include <PlayRho/Dynamics/Contacts/ContactSolver.hpp>#include <PlayRho/Dynamics/Contacts/VelocityConstraint.hpp>#include <PlayRho/Dynamics/Contacts/PositionConstraint.hpp>#include <PlayRho/Collision/WorldManifold.hpp>#include <PlayRho/Collision/TimeOfImpact.hpp>#include <PlayRho/Collision/RayCastOutput.hpp>#include <PlayRho/Collision/DistanceProxy.hpp>#include <PlayRho/Common/LengthError.hpp>#include <PlayRho/Common/DynamicMemory.hpp>#include <PlayRho/Common/FlagGuard.hpp>#include <PlayRho/Common/WrongState.hpp>#include <algorithm>#include <new>#include <functional>#include <type_traits>#include <memory>#include <set>#include <vector>#include <unordered_map>Go to the source code of this file.
Namespaces | |
| playrho | |
| playrho::d2 | |
Macros | |
| #define | PLAYRHO_MAGIC(x) (x) |
Typedefs | |
| using | playrho::d2::BodyPtr = Body * |
| Body pointer alias. More... | |
| using | playrho::d2::BodyConstraintsPair = std::pair< const Body *const, BodyConstraint * > |
| A body pointer and body constraint pointer pair. More... | |
| using | playrho::d2::BodyConstraints = std::vector< BodyConstraint > |
| Collection of body constraints. More... | |
| using | playrho::d2::PositionConstraints = std::vector< PositionConstraint > |
| Collection of position constraints. More... | |
| using | playrho::d2::VelocityConstraints = std::vector< VelocityConstraint > |
| Collection of velocity constraints. More... | |
Functions | |
| StepStats | playrho::d2::Step (World &world, Time delta, TimestepIters velocityIterations=8, TimestepIters positionIterations=3) |
| Steps the world ahead by a given time amount. More... | |
| ContactCounter | playrho::d2::GetTouchingCount (const World &world) noexcept |
| Gets the touching count for the given world. 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... | |
| 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... | |
| 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... | |

