From 7e7702611bcbdcff8b658022a951b8573d32f714 Mon Sep 17 00:00:00 2001
From: Christian Helwig <helwig@vr.rwth-aachen.de>
Date: Fri, 16 Aug 2024 13:16:24 +0200
Subject: [PATCH] fix(movement): enables movement when stuck colliding with
 objects.

---
 .../Pawn/Navigation/CollisionHandlingMovement.cpp        | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/Source/RWTHVRToolkit/Private/Pawn/Navigation/CollisionHandlingMovement.cpp b/Source/RWTHVRToolkit/Private/Pawn/Navigation/CollisionHandlingMovement.cpp
index b565b58a..4f86fc4f 100644
--- a/Source/RWTHVRToolkit/Private/Pawn/Navigation/CollisionHandlingMovement.cpp
+++ b/Source/RWTHVRToolkit/Private/Pawn/Navigation/CollisionHandlingMovement.cpp
@@ -67,13 +67,8 @@ void UCollisionHandlingMovement::TickComponent(float DeltaTime, enum ELevelTick
 			}
 		}
 
-		// in case we are in a collision and collision checks are temporarily deactivated, we only allow physical
-		// movement without any checks, otherwise check collision during physical movement
-		if (bCollisionChecksTemporarilyDeactivated)
-		{
-			ConsumeInputVector();
-		}
-		else
+		// in case we are in a collision and collision checks are temporarily deactivated.
+		if (!bCollisionChecksTemporarilyDeactivated)
 		{
 			// so we add stepping-up (for both walk and fly)
 			// and gravity for walking only
-- 
GitLab