summaryrefslogtreecommitdiffstats
path: root/src/game/shared/entity/velocity.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/shared/entity/velocity.hh')
-rw-r--r--src/game/shared/entity/velocity.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/shared/entity/velocity.hh b/src/game/shared/entity/velocity.hh
index 69fce9e..0266bd0 100644
--- a/src/game/shared/entity/velocity.hh
+++ b/src/game/shared/entity/velocity.hh
@@ -2,7 +2,7 @@
class Dimension;
-struct Velocity final {
+struct Velocity {
glm::fvec3 value;
public:
@@ -11,3 +11,10 @@ public:
// NOTE: This system was previously called inertial
static void fixed_update(Dimension* dimension);
};
+
+namespace client
+{
+// Client-side only - interpolated and previous velocity
+struct VelocityIntr final : public Velocity {};
+struct VelocityPrev final : public Velocity {};
+} // namespace client