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

Method GetWorldMatrix

Source/Engine/Graphics/RenderView.cs:117–121  ·  view source on GitHub ↗

Calculates the world matrix for the given transformation instance rendering. The object transformation. The output matrix.

(ref Transform transform, out Matrix world)

Source from the content-addressed store, hash-verified

115 /// <param name="transform">The object transformation.</param>
116 /// <param name="world">The output matrix.</param>
117 public void GetWorldMatrix(ref Transform transform, out Matrix world)
118 {
119 Float3 translation = transform.Translation - Origin;
120 Matrix.Transformation(ref transform.Scale, ref transform.Orientation, ref translation, out world);
121 }
122 }
123}

Callers

nothing calls this directly

Calls 1

TransformationMethod · 0.45

Tested by

no test coverage detected