1 #ifndef PHYSICALENTITY_H_
2 #define PHYSICALENTITY_H_
4 #include <msp/game/entity.h>
5 #include <msp/game/transform.h>
13 ColliderSetup collider;
16 class PhysicalEntity: public Msp::Game::Entity
19 using Setup = PhysicalSetup;
22 Msp::Game::Owned<RigidBody> body;
23 Msp::Game::Owned<Collider> collider;
26 PhysicalEntity(Msp::Game::Handle<Msp::Game::Entity>, const Setup &, const Msp::Game::TransformValues & = Msp::Game::TransformValues());
28 bool is_fixture() const { return !body; }
29 Msp::Game::Handle<RigidBody> get_body() const { return body; }
30 Msp::Game::Handle<Collider> get_collider() const { return collider; }