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;