FindActorAlignmentRotation

Find am alignment transform for the specified actor rotation, given a model-space axis to align, and a world space normal to align to.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/ActorFactories/ActorFactory.h

Include

#include "ActorFactories/ActorFactory.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Factories/ActorFactory.cpp

Syntax

FQuat FindActorAlignmentRotation
(
    const FQuat & InActorRotation,
    const FVector & InModelAxis,
    const FVector & InWorldNormal
)

Remarks

Find am alignment transform for the specified actor rotation, given a model-space axis to align, and a world space normal to align to. This function attempts to find a 'natural' looking rotation by rotating around a local pitch axis, and a world Z. Rotating in this way should retain the roll around the model space axis, removing rotation artifacts introduced by a simpler quaternion rotation.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss