Partial SimpleRigidBody update end

This commit is contained in:
Dander7BD 2013-12-20 11:21:18 +01:00
parent 9a67e7ef3d
commit d163b7d8cf
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}