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

Method SetTransform

Source/Engine/Level/Actor.cpp:758–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758void Actor::SetTransform(const Transform& value)
759{
760 CHECK(!value.IsNanOrInfinity());
761 if (_transform.Translation != value.Translation || _transform.Orientation != value.Orientation || _transform.Scale != value.Scale)
762 {
763 if (_parent)
764 _parent->_transform.WorldToLocal(value, _localTransform);
765 else
766 _localTransform = value;
767 OnTransformChanged();
768 }
769}
770
771void Actor::SetPosition(const Vector3& value)
772{

Callers 5

SetMethod · 0.80
SpawnMethod · 0.80
SpawnMethod · 0.80
OnTransformChangedMethod · 0.80
SpawnPrefabMethod · 0.80

Calls 2

IsNanOrInfinityMethod · 0.45
WorldToLocalMethod · 0.45

Tested by

no test coverage detected