Skip to content
Snippets Groups Projects
Commit 421eaf7b authored by Qurabi's avatar Qurabi
Browse files

Das Setzt vom Z auf 0 beim physikalischen wurde rausgenommen.

parent 9daec3af
No related branches found
No related tags found
No related merge requests found
...@@ -449,7 +449,7 @@ void AVirtualRealityPawn::CheckForPhysWalkingCollision() ...@@ -449,7 +449,7 @@ void AVirtualRealityPawn::CheckForPhysWalkingCollision()
{ {
FVector CurrentCameraPosition = CameraComponent->GetComponentLocation(); FVector CurrentCameraPosition = CameraComponent->GetComponentLocation();
FVector Direction = CurrentCameraPosition - LastCameraPosition; FVector Direction = CurrentCameraPosition - LastCameraPosition;
Direction.Z = 0.0f;//walking //Direction.Z = 0.0f;//walking
FHitResult FHitResultPhys; FHitResult FHitResultPhys;
CapsuleColliderComponent->AddWorldOffset(Direction, true, &FHitResultPhys); CapsuleColliderComponent->AddWorldOffset(Direction, true, &FHitResultPhys);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment