FTransform struct contains a
Translation vector, a
Rotation quaternion, and a
Scale3D vector. Each SceneComponent has its own
FTransform, generally for internal use, that
describes its world-relative location, rotation, and scale. They also have an additional
RelativeRotation rotator, and
RelativeScale3D vector used which can act
as either relative to their parent Component or relative to the world. These are generally what are used when getting or setting the transform for a Component.
RelativeScale3D are relative to their
AttachParent. These values can be forced to be relative to the world using the
bAbsoluteScale properties. Setting any of these to
true will cause the corresponding property to be world-relative.
Even when using parent-relative transform values, it is still possible to set translation and rotation using absolute world values via the methods shown below:
Set the relative translation of this Component to put it at the supplied location in world space.
Set the relative rotation of this Component to put it at the supplied orientation in world space.