diff --git a/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp b/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp index ddc0bb3b4c259fa7a7dec5d25a8fa7ced41cc4be..f08d8a06b18c6c69c0a8a7bc7c925a8ef7b0a5d2 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp @@ -87,8 +87,8 @@ void UScalingComponent::BeginPlay() // in case of cave, also at this to the equal sized components if(VRPawn->CaveSetupActor) { - //UE_LOG(LogTemp,Display,TEXT("Cave Setup Actor is valid and will be added to equal Sized objects")) - //AddEqualSizedActor(VRPawn->CaveSetupActor); + UE_LOG(LogTemp,Display,TEXT("Cave Setup Actor is valid and will be added to equal Sized objects")) + AddEqualSizedActor(VRPawn->CaveSetupActor); } else { UE_LOG(LogTemp,Display,TEXT("Cave Setup Actor is invalid in ScalingComponent::BeginPlay()")) @@ -126,7 +126,7 @@ void UScalingComponent::OnGrow(const FInputActionValue& InputActionValue) float PreviousScale = CurrentW2MScale; // store for computing scale ratio CurrentW2MScale = CurrentW2MScale * (1 + ScaleStepSize); - GNearClippingPlane = CurrentW2MScale; + //GNearClippingPlane = CurrentW2MScale; FloatingPawnMovement->Acceleration = DefaultAcceleration * CurrentW2MScale/100; FloatingPawnMovement->Deceleration = DefaultDeceleration* CurrentW2MScale/100; @@ -156,7 +156,7 @@ void UScalingComponent::OnShrink(const FInputActionValue& InputActionValue) float PreviousScale = CurrentW2MScale; // store for computing scale ratio CurrentW2MScale = CurrentW2MScale / (1.f + ScaleStepSize); - GNearClippingPlane = CurrentW2MScale; + //GNearClippingPlane = CurrentW2MScale; FloatingPawnMovement->Acceleration = DefaultAcceleration * CurrentW2MScale/100; FloatingPawnMovement->Deceleration = DefaultDeceleration * CurrentW2MScale/100; FloatingPawnMovement->MaxSpeed = DefaultMaxSpeed * CurrentW2MScale/100; @@ -187,7 +187,7 @@ void UScalingComponent::OnResetScale(const FInputActionValue& InputActionValue) float CurrentW2MScale = UHeadMountedDisplayFunctionLibrary::GetWorldToMetersScale(GetOwner()->GetWorld()); float PreviousScale = CurrentW2MScale; // store for computing scale ratio CurrentW2MScale = OriginalScale; - GNearClippingPlane = CurrentW2MScale; + //GNearClippingPlane = CurrentW2MScale; FloatingPawnMovement->Acceleration = DefaultAcceleration * CurrentW2MScale/100; FloatingPawnMovement->Deceleration = DefaultDeceleration * CurrentW2MScale/100;