Merge branch 'Physics' of https://github.com/dean11/Danbias into GameLogic

This commit is contained in:
lindaandersson 2014-01-21 10:38:03 +01:00
commit c7b3c1ec30
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void API_Impl::Update()
{
case Gravity::GravityType_Well:
{
Float4 d = state.GetCenterPosition() - Float4( this->gravity[i].well.position, 1.0f );
Float4 d = Float4( this->gravity[i].well.position, 1.0f ) - state.GetCenterPosition();
Float rSquared = d.Dot( d );
if( rSquared != 0.0 )
{