Skip to content

Commit

Permalink
Remove the motionState for the ground. It doesn't need one.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChickenProp committed Nov 24, 2010
1 parent 61e1f96 commit 8568faf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ World::World() {
ph::vec3f(-10, 10, 10),
ph::vec3f(-10, 10, 0)));

btDefaultMotionState *ms
= new btDefaultMotionState(btTransform(btQuaternion(0,0,0,1),
btVector3(0,0,0)));
btRigidBody::btRigidBodyConstructionInfo
construct(0, ms, G::Shapes::ground, btVector3(0, 0, 0));
construct(0, NULL, G::Shapes::ground, btVector3(0, 0, 0));
groundBody = new btRigidBody(construct);

G::physics->addRigidBody(groundBody);
}

World::~World () {
G::physics->removeRigidBody(groundBody);
delete groundBody->getMotionState();
delete groundBody;

for (std::vector<Wall*>::iterator it = walls.begin();
Expand Down

0 comments on commit 8568faf

Please sign in to comment.