Fixed vector issue

This commit is contained in:
Robin Engman 2014-01-29 10:54:59 +01:00
parent 60062feb07
commit 4ccf11b5d6
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ Sphere & SphericalRigidBody::GetBoundingSphere( Sphere &targetMem ) const
Float4 & SphericalRigidBody::GetNormalAt( const Float4 &worldPos, Float4 &targetMem ) const
{
targetMem = worldPos.xyz - this->rigid.centerPos;
targetMem = Float4( worldPos.xyz - this->rigid.centerPos, 0);
Float magnitude = targetMem.GetMagnitude();
if( magnitude != 0.0f )
{ // sanity check