No announcement yet.

Transform coordinates to Unreal

  • Filter
  • Time
  • Show
Clear All
new posts

    Transform coordinates to Unreal

    I have an object that I want to place in a relative location w.r.t. its parent using SetRelativeXXX. The object's coordinate system is different to Unreal's. How can I transform the position so that it works in Unreal using C++ please?

    For the object:
    positive x is to the right (x axis is left / right relative to parent).
    positive y is up (y axis is up / down relative to parent)
    negative z is forward (relative to parent)

    FVector RelativeVector = FVector(MyVector.Z, MyVector.X, MyVector.Y)

    However if this is a 3D object you've imported with a different coordinate system from a 3D package like Blender, you can usually export it with a coordinate system that matches UE.
    Last edited by JamesW_2; 06-24-2020, 08:50 AM.