summaryrefslogtreecommitdiffstats
path: root/game/shared/velocity.hh
blob: 9aafed1329a037274839e5dab7e4e51230fcaa8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 */