getWorldTransform

Gets the world transform for a transform instance (accounting for parent transforms).

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

out

Optional array to fill with the world transform (or null)

expect fun getWorldTransform(instance: EntityInstance, out: FloatArray? = null): FloatArray
expect fun getWorldTransform(instance: EntityInstance, out: DoubleArray? = null): DoubleArray

Gets the world transform for a transform instance (accounting for parent transforms).

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

out

Optional array to fill with the world transform (or null)

Gets the world transform for a transform instance (accounting for parent transforms).

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

out

Optional array to fill with the world transform (or null)

Gets the world transform for a transform instance (accounting for parent transforms).

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

out

Optional array to fill with the world transform (or null)

Gets the world transform for a transform instance (accounting for parent transforms).

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

out

Optional array to fill with the world transform (or null)