From 628c81c33ad8ebe118525e80961a8021d5018598 Mon Sep 17 00:00:00 2001 From: Robin Engman Date: Fri, 21 Feb 2014 11:33:57 +0100 Subject: [PATCH] Fixed linear velocity --- Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp b/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp index 631f8645..91886313 100644 --- a/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp +++ b/Code/Physics/GamePhysics/Implementation/PhysicsAPI_Impl.cpp @@ -288,7 +288,7 @@ void API_Impl::UpdateWorld() { this->customBodies[i]->CallSubscription_Move(); } - simpleBody->SetPreviousVelocity(simpleBody->GetState().previousVelocity); + simpleBody->SetPreviousVelocity(simpleBody->GetLinearVelocity()); } this->dynamicsWorld->stepSimulation(this->timeStep, 1, this->timeStep);