Fixing bug with determing what direction it is collding.

This commit is contained in:
Nathan Adams 2012-05-19 23:39:20 -05:00
parent 859a6c3c9d
commit e75e8fdca1

View File

@ -40,9 +40,10 @@ namespace Axios.Engine.Extensions
{
// Y direction is dominant
if (colNorm.Y > 0)
direction = CollisionDirection.Top;
else
direction = CollisionDirection.Bottom;
else
direction = CollisionDirection.Top;
}