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

Method SetLocalTransform

Source/Engine/Level/Actor.cpp:846–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846void Actor::SetLocalTransform(const Transform& value)
847{
848 CHECK(!value.IsNanOrInfinity());
849 if (_localTransform.Translation != value.Translation || _localTransform.Orientation != value.Orientation || _localTransform.Scale != value.Scale)
850 {
851 _localTransform = value;
852 OnTransformChanged();
853 }
854}
855
856void Actor::SetLocalPosition(const Vector3& value)
857{

Callers 4

SetMethod · 0.80
CreatePrefabMethod · 0.80
UpdateVehiclesMethod · 0.80
OnFixedUpdateMethod · 0.80

Calls 1

IsNanOrInfinityMethod · 0.45

Tested by

no test coverage detected