1 #ifndef PHYSICALENTITY_H_
2 #define PHYSICALENTITY_H_
4 #include <msp/game/entity.h>
12 ColliderSetup collider;
15 class PhysicalEntity: public Msp::Game::Entity
18 using Setup = PhysicalSetup;
21 Msp::Game::Owned<RigidBody> body;
22 Msp::Game::Owned<Collider> collider;
25 PhysicalEntity(Msp::Game::Handle<Msp::Game::Entity>, const Setup &);
27 bool is_fixture() const { return !body; }
28 Msp::Game::Handle<RigidBody> get_body() const { return body; }
29 Msp::Game::Handle<Collider> get_collider() const { return collider; }