#include "physicalentity.h"
-#include <msp/game/transform.h>
using namespace Msp;
-PhysicalEntity::PhysicalEntity(Game::Handle<Game::Entity> p, const Setup &s):
- Entity(p, Game::TransformValues()),
- collider(*this, s.collider)
+PhysicalEntity::PhysicalEntity(Game::Handle<Game::Entity> p, const Setup &s, const Game::TransformValues &tv):
+ Entity(p, tv),
+ collider(this, s.collider)
{
if(!s.fixture)
- body = Game::Owned<RigidBody>(*this, s.body);
+ body = Game::Owned<RigidBody>(this, s.body);
}