From f33e5ba5ae5d0df55018128489b4c115ef6b8111 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 30 Jan 2019 14:47:38 -0800 Subject: [PATCH] cleanup --- libraries/physics/src/EntityMotionState.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libraries/physics/src/EntityMotionState.cpp b/libraries/physics/src/EntityMotionState.cpp index 5a658e1f01..ce9cb20c21 100644 --- a/libraries/physics/src/EntityMotionState.cpp +++ b/libraries/physics/src/EntityMotionState.cpp @@ -114,20 +114,6 @@ void EntityMotionState::updateServerPhysicsVariables() { } } -// void EntityMotionState::handleDeactivation() { -// // copy _server data to entity -// Transform localTransform = _entity->getLocalTransform(); -// // localTransform.setTranslation(_serverPosition); -// // localTransform.setRotation(_serverRotation); -// _entity->setLocalTransformAndVelocities(localTransform, ENTITY_ITEM_ZERO_VEC3, ENTITY_ITEM_ZERO_VEC3); -// // and also to RigidBody -// btTransform worldTrans; -// worldTrans.setOrigin(glmToBullet(_entity->getWorldPosition())); -// worldTrans.setRotation(glmToBullet(_entity->getWorldOrientation())); -// _body->setWorldTransform(worldTrans); -// // no need to update velocities... should already be zero -// } - void EntityMotionState::handleDeactivation() { if (_entity->getDirtyFlags() & (Simulation::DIRTY_TRANSFORM | Simulation::DIRTY_VELOCITIES)) { // Some non-physical event (script-call or network-packet) has modified the entity's transform and/or velocities