Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework
Description
Rotates a transform such that its basis still lies along the cardinal axes but rotated in such a way that the given axis is in the X direction. For example, if you have a transform that makes a component work well as an X axis in a TRS gizmo, using this function with AxisToBeX set to Y will rotate the transform to work well as the Y axis, because the basis will have been rotated to be YZX.
| Name | UE::GizmoUtil::GetRotatedBasisTransform |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/TransformSubGizmoUtil.h |
| Include Path | #include "BaseGizmos/TransformSubGizmoUtil.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/BaseGizmos/TransformSubGizmoUtil.cpp |
namespace UE
{
namespace GizmoUtil
{
FTransform UE::GizmoUtil::GetRotatedBasisTransform
(
const FTransform & TransformIn,
EAxis::Type AxisToBeX
)
}
}