Fixing bug with determing what direction it is collding.
This commit is contained in:
parent
859a6c3c9d
commit
e75e8fdca1
@ -40,9 +40,10 @@ namespace Axios.Engine.Extensions
|
|||||||
{
|
{
|
||||||
// Y direction is dominant
|
// Y direction is dominant
|
||||||
if (colNorm.Y > 0)
|
if (colNorm.Y > 0)
|
||||||
direction = CollisionDirection.Top;
|
|
||||||
else
|
|
||||||
direction = CollisionDirection.Bottom;
|
direction = CollisionDirection.Bottom;
|
||||||
|
else
|
||||||
|
direction = CollisionDirection.Top;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user