summary refs log tree commit diff
path: root/src/Math/AABB.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Math/AABB.hpp')
-rw-r--r--src/Math/AABB.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Math/AABB.hpp b/src/Math/AABB.hpp
index b50ba56..b298126 100644
--- a/src/Math/AABB.hpp
+++ b/src/Math/AABB.hpp
@@ -83,6 +83,8 @@ struct AABB {
         // Velocity sliding along the collision plane.
         // Projection of the fraction of the original velocity that was blocked by collision, onto the collision plane.
         Vec3 v_slide;
+        // Normal of the collision plane.
+        Vec3 normal;
     };
     CollisionResponse collision_response(Vector<3> v, AABB against) const;