blob: 536a06674a433857fb4e64cf7acdcb7731233b44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef SHARED_ENTITY_COLLISION_HH
#define SHARED_ENTITY_COLLISION_HH 1
#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
#endif // SHARED_ENTITY_COLLISION_HH
|