Converting vector between local and world space

To convert a vector from world to local space



//LocalObjectWorldLocation is the location of the object you want to make your vector relative to
FVector LocalVector = WorldVector - LocalObjectWorldLocation;


To convert a vector from local to world



//LocalObjectWorldLocation is the location of the object that your LocalVector is relative to
FVector WorldVector = LocalVector + LocalObjectWorldLocation;


2 Likes