Partial SimpleRigidBody update end
This commit is contained in:
parent
9a67e7ef3d
commit
d163b7d8cf
|
@ -253,12 +253,15 @@ UpdateState SimpleRigidBody::Update( Float timeStepLength )
|
||||||
{
|
{
|
||||||
if( this->isForwarded )
|
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 );
|
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 this->current == this->previous ? UpdateState_resting : UpdateState_altered;
|
||||||
return UpdateState_altered;
|
return UpdateState_altered;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue