From 7b061aee2b4c15d242bb9f18101d6b9ea776c5cd Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 1 Feb 2024 23:56:57 +0100 Subject: Walking movement --- src/Math/AABB.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Math/AABB.hpp') 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; -- cgit 1.4.1