Skip to content

@modoki/engine / index / getWorldMatrix3D

Function: getWorldMatrix3D() ​

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

Compute an entity's raw WORLD matrix ON DEMAND (no decompose) INTO out (default a shared singleton — clone/copy if you must retain it past the next call). Query-based and headless-safe. Use for physics body seeding, where you want the composed matrix directly without a lossy TRS round-trip.

Parameters ​

entityId ​

number

world? ​

World = ...

out? ​

Matrix4 = _wmMat

Returns ​

Matrix4

Built with Modoki.