The Game Object to calculate the transform matrix for.
The camera being used to render the Game Object.
OptionalparentMatrix: TransformMatrixThe transform matrix of the parent container, if any.
OptionalignoreCameraPosition: booleanShould the camera's translation be ignored? This is what moves a camera around on the screen, but it should be ignored when the camera is being rendered to a framebuffer. Default false.
Calculates the Transform Matrix of the given Game Object and Camera, factoring in the parent matrix if provided.
Note that the object this results contains references to the Transform Matrices, not new instances of them. Therefore, you should use their values immediately, or copy them to your own matrix, as they will be replaced as soon as another Game Object is rendered.