Skip to content

@modoki/engine / index / getParentWorldMatrix3D

Function: getParentWorldMatrix3D()

getParentWorldMatrix3D(entityId, world?, out?): Matrix4

Compute an entity's PARENT world matrix ON DEMAND INTO out (default a shared singleton). Identity if the entity is at the root. This is the matrix you invert to convert a world-space pose back into the entity's LOCAL frame — see worldToLocal3D.

Parameters

entityId

number

world?

World = ...

out?

Matrix4 = _wmMat

Returns

Matrix4

Built with Modoki.