Gravity fix 3

This commit is contained in:
Dander7BD 2014-01-21 10:34:22 +01:00
parent 76723cf2d8
commit 43e5561995
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 )
{