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

Method SetPosition

Source/Engine/Level/Actor.cpp:771–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769}
770
771void Actor::SetPosition(const Vector3& value)
772{
773 CHECK(!value.IsNanOrInfinity());
774 if (_transform.Translation != value)
775 {
776 if (_parent)
777 _localTransform.Translation = _parent->_transform.WorldToLocal(value);
778 else
779 _localTransform.Translation = value;
780 OnTransformChanged();
781 }
782}
783
784void Actor::SetOrientation(const Quaternion& value)
785{

Callers 15

IsValidShaderCacheFunction · 0.45
ClearMethod · 0.45
AMediaDataSourceReadAtFunction · 0.45
CreateModelMethod · 0.45
CreateSkinnedModelMethod · 0.45
CreateMethod · 0.45
CreateCubeMethod · 0.45
ProcessGroupFunctionMethod · 0.45
SaveMethod · 0.45
loadMethod · 0.45
Upgrade_5_To_30Method · 0.45
Upgrade_25_To_30Method · 0.45

Calls 2

IsNanOrInfinityMethod · 0.45
WorldToLocalMethod · 0.45

Tested by

no test coverage detected