]> git.tdb.fi Git - libs/game.git/blob - examples/bassteroids/source/physicalentity.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / examples / bassteroids / source / physicalentity.cpp
1 #include "physicalentity.h"
2
3 using namespace Msp;
4
5 PhysicalEntity::PhysicalEntity(Game::Handle<Game::Entity> p, const Setup &s, const Game::TransformValues &tv):
6         Entity(p, tv),
7         collider(this, s.collider)
8 {
9         if(!s.fixture)
10                 body = Game::Owned<RigidBody>(this, s.body);
11 }