MochiEngine
Loading...
Searching...
No Matches
Mochi::Transform Struct Reference

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

Detailed Description

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.


The documentation for this struct was generated from the following file: