blob: 5d4ec03d5f7e70cda4992aafac3a6f1337ba5746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef SHARED_ENTITY_VELOCITY_HH
#define SHARED_ENTITY_VELOCITY_HH 1
#pragma once
namespace world
{
class Dimension;
} // namespace world
namespace entity
{
struct Velocity final {
glm::fvec3 value;
public:
// Updates entities entity::Transform values
// according to velocities multiplied by fixed_frametime.
// NOTE: This system was previously called inertial
static void fixed_update(world::Dimension* dimension);
};
} // namespace entity
#endif // SHARED_VELOCITY_HH
|