25 #ifndef RAYLIB_CPP_INCLUDE_PHYSICS_HPP_
26 #define RAYLIB_CPP_INCLUDE_PHYSICS_HPP_
28 #include "./raylib.hpp"
38 #include "./Vector2.hpp"
77 ::SetPhysicsTimeStep(delta);
82 return ::IsPhysicsEnabled();
86 ::SetPhysicsGravity(x, y);
91 return ::CreatePhysicsBodyCircle(pos, radius, density);
95 return ::CreatePhysicsBodyRectangle(pos, width, height, density);
99 return ::CreatePhysicsBodyPolygon(pos, radius, sides, density);
103 ::PhysicsAddForce(body, force);
108 ::PhysicsAddTorque(body, amount);
113 ::PhysicsShatter(body, position, force);
118 return ::GetPhysicsBodiesCount();
122 return ::GetPhysicsBody(index);
126 return ::GetPhysicsShapeType(index);
130 return ::GetPhysicsShapeVerticesCount(index);
134 return ::GetPhysicsShapeVertex(body, vertex);
138 ::SetPhysicsBodyRotation(body, radians);
143 ::DestroyPhysicsBody(body);
154 #endif // RAYLIB_CPP_INCLUDE_PHYSICS_HPP_