From e75e8fdca1aa6e7f83eaa9929902cb7f7eb42cb9 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sat, 19 May 2012 23:39:20 -0500 Subject: [PATCH] Fixing bug with determing what direction it is collding. --- axios/Engine/Extensions/Contact.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/axios/Engine/Extensions/Contact.cs b/axios/Engine/Extensions/Contact.cs index e8c16a8..7885c00 100644 --- a/axios/Engine/Extensions/Contact.cs +++ b/axios/Engine/Extensions/Contact.cs @@ -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; + }