blob: 95a9b86e1cc0ee4ab7f05b346000aa8386d4013a (
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::AABBf 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
|