Hello am very new to UE 4 and was hoping for some help on a math problem.
FVector FloorBoxSize = GetWantedBoxSize(); // .. FVector BoxLocationWithOffset = GetActorLocation(); BoxLocationWithOffset.Z -= BoxSize.Z; // Puts the box at desierd height. FVecotr End = ?; // Help is needed here. ... // How can i use this as i do OverlapMulti ? GetWorld()->SweepMulti(CurrentOverlapsHits, BoxLocationWithOffset, End/* ? */, FQuat::Identity, FCollisionShape::MakeBox(FloorBoxSize), Params, ObjParams); // Gets the data needed but can`t get it at wanted location and size.. // This was very simple way is it not the same this SweepMulti() ? GetWorld()->OverlapMulti(CurrentOverlaps, BoxLocationWithOffset, FQuat::Identity, ECollisionChannel::ECC_GameTraceChannel3, FCollisionShape::MakeBox(FloorBoxSize), Params); // Right where i need it to be but don`t return the needed data.
Problem is that i can`t find out how to calculate the correct End location.
I want the sweep/ trace to start and be the same size as FloorBoxSize.