1 #ifndef PHYSICSHELPERS_HPP 2 #define PHYSICSHELPERS_HPP 25 glm::vec2 metersToPixels(b2Vec2 meters)
27 return { meters.x*
PPM, meters.y*
PPM };
35 b2Vec2 pixelsToMeters(glm::vec2 pixels)
37 return { pixels.x/
PPM, pixels.y/
PPM };
42 #endif // PHYSICSHELPERS_HPP const float PPM
Definition: PhysicsHelpers.hpp:15
const float MPP
Definition: PhysicsHelpers.hpp:16
const float tilex
Definition: PhysicsHelpers.hpp:12
const float tiley
Definition: PhysicsHelpers.hpp:13