MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetOrientation

Method SetOrientation

Source/Engine/Level/Actor.cpp:784–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784void Actor::SetOrientation(const Quaternion& value)
785{
786 CHECK(!value.IsNanOrInfinity());
787 if (_transform.Orientation != value)
788 {
789 if (_parent)
790 _parent->_transform.WorldToLocal(value, _localTransform.Orientation);
791 else
792 _localTransform.Orientation = value;
793 OnTransformChanged();
794 }
795}
796
797void Actor::SetScale(const Float3& value)
798{

Callers 1

AutoResizeMethod · 0.80

Calls 2

IsNanOrInfinityMethod · 0.45
WorldToLocalMethod · 0.45

Tested by

no test coverage detected