Skip to content
Snippets Groups Projects
Commit a09dba3b authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Fixing Position calculation

parent 75487b11
Branches
No related tags found
2 merge requests!13Develop,!12Feature/dynamic spawning of overlay
......@@ -315,7 +315,7 @@ void ACAVEOverlayController::Tick(float DeltaTime)
if (!Head || !Cave_Origin) return; //Display Cluster not initialized
//Tape Logic
FVector Shutter_Position = Cave_Origin->GetComponentLocation() - Head->GetComponentLocation();
FVector Shutter_Position = Head->GetComponentLocation() - Cave_Origin->GetComponentLocation();
bool bOverlay_Visible = FMath::IsWithinInclusive(Shutter_Position.GetAbsMax(), Wall_Distance - Wall_Close_Distance, Wall_Distance);
if (bOverlay_Visible && !PositionInDoorOpening(Shutter_Position))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment