Get center of actor in world coordinates instead of local coordinates
I'm calculating the center of an actor, but the FVector I get is in local coordinates. I need to get it in world coordinates so that I can move the center of the actor where I need it to go in the world. Code I use to get the center and my not working attempt at getting the center in world coordinates:
From what I've read you can use the FTransform to switch between local and world. It seems FTransform::TransformPosition() will give you the world position and FTransform::InverseTransformPosition() will give you local position.
I haven't tested it though and can't right now, but you should try it if you can get your actor's transform.
answered Jul 07 '18 at 08:58 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here