Skip to content
Snippets Groups Projects
Commit 94e66b84 authored by Qurabi's avatar Qurabi
Browse files

Das Problem, dass man nach unten fällt, ist behoben.

parent 3f0937a8
No related branches found
No related tags found
No related merge requests found
...@@ -506,6 +506,7 @@ void AVirtualRealityPawn::MoveByGravityOrStepUp(float DeltaSeconds) ...@@ -506,6 +506,7 @@ void AVirtualRealityPawn::MoveByGravityOrStepUp(float DeltaSeconds)
else else
{ {
RootComponent->AddLocalOffset(FVector(0.f, 0.f, +DiffernceDistance)); RootComponent->AddLocalOffset(FVector(0.f, 0.f, +DiffernceDistance));
VerticalSpeed = 0;
} }
} }
//Falling, Gravity, Going down //Falling, Gravity, Going down
...@@ -519,13 +520,9 @@ void AVirtualRealityPawn::MoveByGravityOrStepUp(float DeltaSeconds) ...@@ -519,13 +520,9 @@ void AVirtualRealityPawn::MoveByGravityOrStepUp(float DeltaSeconds)
else else
{ {
RootComponent->AddLocalOffset(FVector(0.f, 0.f, -DiffernceDistance)); RootComponent->AddLocalOffset(FVector(0.f, 0.f, -DiffernceDistance));
VerticalSpeed = 0;
} }
} }
//Going on the ground
else
{
VerticalSpeed = 0.0f;
}
} }
void AVirtualRealityPawn::InitRoomMountedComponentReferences() void AVirtualRealityPawn::InitRoomMountedComponentReferences()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment