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

Method GetLocalToWorldMatrix

Source/Engine/Level/Actor.cpp:903–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903void Actor::GetLocalToWorldMatrix(Matrix& localToWorld) const
904{
905#if 0
906 _transform.GetWorld(localToWorld);
907#else
908 _localTransform.GetWorld(localToWorld);
909 if (_parent)
910 {
911 Matrix parentToWorld;
912 _parent->GetLocalToWorldMatrix(parentToWorld);
913 localToWorld = localToWorld * parentToWorld;
914 }
915#endif
916}
917
918void Actor::GetWorldToLocalMatrix(Double4x4& worldToLocal) const
919{

Callers 9

cacheStaticGeometryTreeFunction · 0.80
onJobRenderMethod · 0.80
ComputeBoundsMethod · 0.80
SimMethod · 0.80
RasterizeMethod · 0.80
SearchMethod · 0.80
PaintMethod · 0.80
GetAffectedPatchesMethod · 0.80
ApplyMethod · 0.80

Calls 1

GetWorldMethod · 0.45

Tested by

no test coverage detected