Go to the source code of this file.
|
b2Vec2 | pixels_to_world (const glm::vec2 &pixel_pos) |
| Convert pixel coordinates to Physics world coordinates. More...
|
|
glm::vec2 | world_to_pixels (const b2Vec2 &world_pos) |
| Convert pixel coordinates to Physics world coordinates. More...
|
|
template<typename T > |
T | random (T min, T max) |
| Generate a random number between min and max. More...
|
|
◆ pixels_to_world()
b2Vec2 pixels_to_world |
( |
const glm::vec2 & |
pixel_pos | ) |
|
Convert pixel coordinates to Physics world coordinates.
- Parameters
-
pixel_pos | Position in pixels. |
- Returns
- b2Vec2 Position in Physics world units.
◆ random()
template<typename T >
T random |
( |
T |
min, |
|
|
T |
max |
|
) |
| |
Generate a random number between min and max.
◆ world_to_pixels()
glm::vec2 world_to_pixels |
( |
const b2Vec2 & |
world_pos | ) |
|
Convert pixel coordinates to Physics world coordinates.
- Returns
- b2Vec2 Position in Physics world units.
◆ audio_engine
◆ GEngine
std::unique_ptr<Engine> GEngine |
|
extern |
◆ METERS_PER_PIXEL
◆ PIXELS_PER_METER
constexpr float PIXELS_PER_METER = 32.0f |
|
constexpr |