Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/ActorFactories
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 |
FQuat FindActorAlignmentRotation
(
const FQuat & InActorRotation,
const FVector & InModelAxis,
const FVector & InWorldNormal,
FQuat * OutDeltaRotation
)
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.