Navigation
API > API/Editor > API/Editor/UnrealEd
Description
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.
| Name | FindActorAlignmentRotation |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/ActorFactories/ActorFactory.h |
| Include Path | #include "ActorFactories/ActorFactory.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Factories/ActorFactory.cpp |
FQuat FindActorAlignmentRotation
(
const FQuat & InActorRotation,
const FVector & InModelAxis,
const FVector & InWorldNormal,
FQuat * OutDeltaRotation
)