Merge branch 'Physics' of https://github.com/dean11/Danbias into GameLogic
This commit is contained in:
commit
89a538e887
|
@ -128,7 +128,7 @@ SimpleRigidBody::State & SimpleRigidBody::GetState( SimpleRigidBody::State &targ
|
||||||
void SimpleRigidBody::SetState( const SimpleRigidBody::State &state )
|
void SimpleRigidBody::SetState( const SimpleRigidBody::State &state )
|
||||||
{
|
{
|
||||||
this->rigid.centerPos = state.GetCenterPosition();
|
this->rigid.centerPos = state.GetCenterPosition();
|
||||||
//this->rigid.SetRotation( state.GetRotation() ); //! HACK: @todo Rotation temporary disabled
|
this->rigid.axis = state.GetAngularAxis();
|
||||||
this->rigid.boundingReach = state.GetReach();
|
this->rigid.boundingReach = state.GetReach();
|
||||||
this->rigid.momentum_Linear = state.GetLinearMomentum();
|
this->rigid.momentum_Linear = state.GetLinearMomentum();
|
||||||
this->rigid.momentum_Angular = state.GetAngularMomentum();
|
this->rigid.momentum_Angular = state.GetAngularMomentum();
|
||||||
|
|
|
@ -94,7 +94,7 @@ SphericalRigidBody::State & SphericalRigidBody::GetState( SphericalRigidBody::St
|
||||||
void SphericalRigidBody::SetState( const SphericalRigidBody::State &state )
|
void SphericalRigidBody::SetState( const SphericalRigidBody::State &state )
|
||||||
{
|
{
|
||||||
this->rigid.centerPos = state.GetCenterPosition();
|
this->rigid.centerPos = state.GetCenterPosition();
|
||||||
//this->rigid.SetRotation( state.GetRotation() ); //! HACK: @todo Rotation temporary disabled
|
this->rigid.axis = state.GetAngularAxis();
|
||||||
this->rigid.boundingReach = state.GetReach();
|
this->rigid.boundingReach = state.GetReach();
|
||||||
this->rigid.momentum_Linear = state.GetLinearMomentum();
|
this->rigid.momentum_Linear = state.GetLinearMomentum();
|
||||||
this->rigid.momentum_Angular = state.GetAngularMomentum();
|
this->rigid.momentum_Angular = state.GetAngularMomentum();
|
||||||
|
|
Loading…
Reference in New Issue