Skip to content
Snippets Groups Projects
Commit 7e770261 authored by Kris Tabea Helwig's avatar Kris Tabea Helwig
Browse files

fix(movement): enables movement when stuck colliding with objects.

parent 30893e87
Branches
Tags
1 merge request!101Enables movement when stuck colliding with objects.
Pipeline #450197 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment