X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=examples%2Fbassteroids%2Fsource%2Fphysicalentity.h;h=0708d42ae46249a2b978739db02f55cbcf7c0749;hb=e5be2d50f4785317f9f42b64d58831ccf907795a;hp=a0cca3768a0308cfe35ba7321d11e32057ec00b1;hpb=0636566dd84ca185d3e9a6fae02459569c42d220;p=libs%2Fgame.git diff --git a/examples/bassteroids/source/physicalentity.h b/examples/bassteroids/source/physicalentity.h index a0cca37..0708d42 100644 --- a/examples/bassteroids/source/physicalentity.h +++ b/examples/bassteroids/source/physicalentity.h @@ -2,15 +2,10 @@ #define PHYSICALENTITY_H_ #include -#include "rigidbody.h" +#include #include "collider.h" - -struct PhysicalSetup -{ - bool fixture = false; - RigidBodySetup body; - ColliderSetup collider; -}; +#include "rigidbody.h" +#include "setups.h" class PhysicalEntity: public Msp::Game::Entity { @@ -22,7 +17,7 @@ protected: Msp::Game::Owned collider; public: - PhysicalEntity(Msp::Game::Handle, const Setup &); + PhysicalEntity(Msp::Game::Handle, const Setup &, const Msp::Game::TransformValues & = Msp::Game::TransformValues()); bool is_fixture() const { return !body; } Msp::Game::Handle get_body() const { return body; }