I have searched all over but cannot find an answer on how to convert a relative location to a world location in blueprints…
This might be really simple and I am just missing it but can anyone help?
Thanks in advance!
I have searched all over but cannot find an answer on how to convert a relative location to a world location in blueprints…
This might be really simple and I am just missing it but can anyone help?
Thanks in advance!
The relative location of what to what? Of a component to its owning actor? Add the actors world location to the relative location of the component.
Maybe this is a late response.
you’re an absolute life saver! I’ve been googling for a while and this workaround is the first actual solution I could find Cheers!
Convert location from local to world:
FVector UKismetMathLibrary::TransformLocation(const FTransform& T, FVector Location)
Convert location from world to local:
FVector UKismetMathLibrary::InverseTransformLocation(const FTransform& T, FVector Location)
or just call TransformPosition(FVector Location)
and InverseTransformLocation(FVector Location)
on FTransform
directly