|
R-Type 0.1
|
Moves entities according to their Velocity. More...
#include <systems/MovementSystem.hpp>
Public Member Functions | |
| void | onStart (rtk::ecs::Registry &) override |
| Logs that the system is loaded. | |
| void | update (rtk::ecs::Registry ®, float dt) override |
| Adds velocity times elapsed time to every position. | |
| void | onStop (rtk::ecs::Registry &) override |
| Does nothing. | |
Moves entities according to their Velocity.
|
inlineoverride |
Adds velocity times elapsed time to every position.
| reg | Registry holding the entities. |
| dt | Elapsed time since the last frame, in seconds. |