Skip to content

MovingObject

Generated from engine/core/moving_object.h at 862e08b. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.

Browse the core module

#include "engine/core/moving_object.h" · namespace labrador

A velocity and a rotation, for a derived class to read and write.

Plain accessors, none of them virtual: a virtual accessor on the object the simulation touches most is a cost with no client (T8). A displacement written and read inside a single call chain is not a member: it is a return value and a local.

virtual ~MovingObject() = default;
MovingObject() = default;
explicit MovingObject(const mattmath::Vector2F& velocity,
float rotation = 0.0f);

velocity · velocity_x · velocity_y (protected)

Section titled “velocity · velocity_x · velocity_y (protected)”
const mattmath::Vector2F& velocity() const;
float velocity_x() const;
float velocity_y() const;

set_velocity · set_velocity_x · set_velocity_y (protected)

Section titled “set_velocity · set_velocity_x · set_velocity_y (protected)”
void set_velocity(const mattmath::Vector2F& velocity);
void set_velocity_x(float x);
void set_velocity_y(float y);

alter_velocity_x · alter_velocity_y (protected)

Section titled “alter_velocity_x · alter_velocity_y (protected)”
void alter_velocity_x(float x);
void alter_velocity_y(float y);
float rotation() const;
void set_rotation(float rotation);

Named in the public declarations above: Vector2F.

No sample or test includes this header directly.

Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.