|
MochiEngine
|
Minimal transform with a position and scale. Rotation is deliberately omited because of the incompatibility with pixel art. This class is meant to represent the space occupied by an entity, and reused for several elements of that same entity, as the game logic, sprite or collider. More...
#include <Transform.hpp>
Public Member Functions | |
| void | Move (const Vector2f &delta) |
Public Attributes | |
| Vector2f | Position |
| float | Scale |
Minimal transform with a position and scale. Rotation is deliberately omited because of the incompatibility with pixel art. This class is meant to represent the space occupied by an entity, and reused for several elements of that same entity, as the game logic, sprite or collider.