blob: 0266bd0e3af27a470a20e9d3d8eaf16c97942684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
class Dimension;
struct Velocity {
glm::fvec3 value;
public:
// Updates entities Transform values
// according to velocities multiplied by fixed_frametime.
// 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
|