From d163b7d8cf72b25eb4e1065b15485634a5ae281a Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 20 Dec 2013 11:21:18 +0100 Subject: [PATCH] Partial SimpleRigidBody update end --- Code/GamePhysics/Implementation/SimpleRigidBody.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Code/GamePhysics/Implementation/SimpleRigidBody.cpp b/Code/GamePhysics/Implementation/SimpleRigidBody.cpp index 2d81d233..88899259 100644 --- a/Code/GamePhysics/Implementation/SimpleRigidBody.cpp +++ b/Code/GamePhysics/Implementation/SimpleRigidBody.cpp @@ -253,12 +253,15 @@ UpdateState SimpleRigidBody::Update( Float timeStepLength ) { if( this->isForwarded ) { - // this->rigid. + this->rigid.Move( this->deltaPos, this->deltaAxis ); + this->deltaPos = Float4::null; + this->deltaAxis = Float4::null; + this->isForwarded = false; } this->rigid.Update_LeapFrog( timeStepLength ); - // compare previous and new state and return result + //! @todo TODO: compare previous and new state and return result //return this->current == this->previous ? UpdateState_resting : UpdateState_altered; return UpdateState_altered; }