summaryrefslogtreecommitdiffstats
path: root/src/game/shared/velocity.hh
blob: 17da42069e34ebeb1e567843afabf97bbf7890db (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