From 6cd00aacfa22fed6a54a9b812f6b069ad16feec0 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 29 Jun 2025 22:24:42 +0500 Subject: Move game sources into src subdirectory --- src/game/shared/velocity.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/game/shared/velocity.hh (limited to 'src/game/shared/velocity.hh') diff --git a/src/game/shared/velocity.hh b/src/game/shared/velocity.hh new file mode 100644 index 0000000..45a2858 --- /dev/null +++ b/src/game/shared/velocity.hh @@ -0,0 +1,17 @@ +#ifndef SHARED_VELOCITY_HH +#define SHARED_VELOCITY_HH 1 +#pragma once + +class Dimension; + +struct VelocityComponent final { + glm::fvec3 value; + +public: + // Updates entities TransformComponent values + // according to velocities multiplied by fixed_frametime. + // NOTE: This system was previously called inertial + static void fixed_update(Dimension* dimension); +}; + +#endif /* SHARED_VELOCITY_HH */ -- cgit