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

Das physikalische Gehen wird in der Tick() aufgerufen, nur wenn der Wolking Mode aktiviert ist.

parent 75df7ac4
Branches
Tags
No related merge requests found
......@@ -278,11 +278,14 @@ void AVirtualRealityPawn::EndPlay(const EEndPlayReason::Type EndPlayReason)
void AVirtualRealityPawn::Tick(float DeltaSeconds)
{
Super::Tick(DeltaSeconds);
//if the walking-mode is activated
if (NavigationMode == EVRNavigationModes::nav_mode_walk)
{
DeltaTime = DeltaSeconds;
SetCapsuleColliderCharacterSizeVR();
MoveByGravityOrStepUp(DeltaSeconds);
CheckForPhysWalkingCollision();
}
// if an actor is grabbed and a behavior is defined move move him accordingly
if (GrabbedActor != nullptr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment