summaryrefslogtreecommitdiffstats
path: root/game/shared/entity/collision.hh
blob: ca94665c97725171c845f5e9a6fc6470a986afac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "core/math/aabb.hh"

namespace world
{
class Dimension;
} // namespace world

namespace entity
{
struct Collision final {
    math::AABB aabb;

public:
    // NOTE: entity::Collision::fixed_update must be called
    // before entity::Transform::fixed_update and entity::Velocity::fixed_update
    // because both transform and velocity may be updated internally
    static void fixed_update(world::Dimension* dimension);
};
} // namespace entity