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
No related branches found
No related tags found
1 merge request!101Enables movement when stuck colliding with objects.
Pipeline #450197 passed
...@@ -67,13 +67,8 @@ void UCollisionHandlingMovement::TickComponent(float DeltaTime, enum ELevelTick ...@@ -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 // in case we are in a collision and collision checks are temporarily deactivated.
// movement without any checks, otherwise check collision during physical movement if (!bCollisionChecksTemporarilyDeactivated)
if (bCollisionChecksTemporarilyDeactivated)
{
ConsumeInputVector();
}
else
{ {
// so we add stepping-up (for both walk and fly) // so we add stepping-up (for both walk and fly)
// and gravity for walking only // 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