diff --git a/sources/reactphysics3d/engine/PhysicsWorld.h b/sources/reactphysics3d/engine/PhysicsWorld.h index 664e9392..fe9dfa9d 100644 --- a/sources/reactphysics3d/engine/PhysicsWorld.h +++ b/sources/reactphysics3d/engine/PhysicsWorld.h @@ -25,6 +25,8 @@ #include #include "../mathematics/mathematics.h" #include "../body/Body.h" +#include "../constraint/Constraint.h" +#include "../constraint/Contact.h" // Namespace reactphysics3d namespace reactphysics3d { @@ -90,6 +92,16 @@ inline void PhysicsWorld::setIsGratityOn(bool isGravityOn) { this->isGravityOn = isGravityOn; } +// Return a start iterator on the constraint list +inline std::vector::const_iterator PhysicsWorld::getConstraintListStartIterator() const { + return constraintList.begin(); +} + +// Return a end iterator on the constraint list +inline std::vector::const_iterator PhysicsWorld::getConstraintListEndIterator() const { + return constraintList.end(); +} + } // End of the ReactPhysics3D namespace #endif