getTransform

actual fun getTransform(instance: EntityInstance, outLocalTransform: FloatArray?): FloatArray
actual fun getTransform(instance: EntityInstance, outLocalTransform: DoubleArray?): DoubleArray

Gets the local transform for a transform instance.

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

outLocalTransform

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

expect fun getTransform(instance: EntityInstance, outLocalTransform: FloatArray?): FloatArray
expect fun getTransform(instance: EntityInstance, outLocalTransform: DoubleArray?): DoubleArray

Gets the local transform for a transform instance.

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

outLocalTransform

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

actual fun getTransform(instance: EntityInstance, outLocalTransform: FloatArray?): FloatArray
actual fun getTransform(instance: EntityInstance, outLocalTransform: DoubleArray?): DoubleArray

Gets the local transform for a transform instance.

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

outLocalTransform

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

actual fun getTransform(instance: EntityInstance, outLocalTransform: FloatArray?): FloatArray
actual fun getTransform(instance: EntityInstance, outLocalTransform: DoubleArray?): DoubleArray

Gets the local transform for a transform instance.

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

outLocalTransform

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

actual fun getTransform(instance: EntityInstance, outLocalTransform: FloatArray?): FloatArray
actual fun getTransform(instance: EntityInstance, outLocalTransform: DoubleArray?): DoubleArray

Gets the local transform for a transform instance.

Return

A 4x4 matrix in row-major order

Parameters

instance

The transform instance

outLocalTransform

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