remove some cruft

This commit is contained in:
Andrew Meadows 2014-11-24 15:05:09 -08:00
parent 0e0eaea849
commit 1c569dcf33

View file

@ -205,12 +205,6 @@ bool PhysicsEngine::updateEntity(CustomMotionState* motionState, uint32_t flags)
// private
void PhysicsEngine::updateEntityHard(btRigidBody* body, CustomMotionState* motionState, uint32_t flags) {
MotionType newType = motionState->getMotionType();
MotionType oldType = MOTION_TYPE_DYNAMIC;
if (body->isStaticObject()) {
oldType = MOTION_TYPE_STATIC;
} else if (body->isKinematicObject()) {
oldType = MOTION_TYPE_KINEMATIC;
}
// pull body out of physics engine
_dynamicsWorld->removeRigidBody(body);
@ -308,9 +302,6 @@ void PhysicsEngine::updateEntityEasy(btRigidBody* body, CustomMotionState* motio
}
body->activate();
btVector3 v = body->getLinearVelocity();
btVector3 g = body->getGravity();
// TODO: support collision groups
};