Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Classes/ActorFactories/ActorFactory.h |
Include |
#include "ActorFactories/ActorFactory.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/Factories/ActorFactory.cpp |
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.