create

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to


actual fun create(entity: Entity, parent: EntityInstance, localTransform: FloatArray?): EntityInstance
actual fun create(entity: Entity, parent: EntityInstance, localTransform: DoubleArray?): EntityInstance

Creates a transform component for an entity with a local transform and parent.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to

parent

The parent transform instance (use NULL_ENTITY for root)

localTransform

The local transform as a 4x4 matrix in row-major order (or null)

expect fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to


expect fun create(entity: Entity, parent: EntityInstance, localTransform: FloatArray?): EntityInstance
expect fun create(entity: Entity, parent: EntityInstance, localTransform: DoubleArray?): EntityInstance

Creates a transform component for an entity with a local transform and parent.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to

parent

The parent transform instance (use NULL_ENTITY for root)

localTransform

The local transform as a 4x4 matrix in row-major order (or null)

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to


actual fun create(entity: Entity, parent: EntityInstance, localTransform: FloatArray?): EntityInstance
actual fun create(entity: Entity, parent: EntityInstance, localTransform: DoubleArray?): EntityInstance

Creates a transform component for an entity with a local transform and parent.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to

parent

The parent transform instance (use NULL_ENTITY for root)

localTransform

The local transform as a 4x4 matrix in row-major order (or null)

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to


actual fun create(entity: Entity, parent: EntityInstance, localTransform: FloatArray?): EntityInstance
actual fun create(entity: Entity, parent: EntityInstance, localTransform: DoubleArray?): EntityInstance

Creates a transform component for an entity with a local transform and parent.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to

parent

The parent transform instance (use NULL_ENTITY for root)

localTransform

The local transform as a 4x4 matrix in row-major order (or null)

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to


actual fun create(entity: Entity, parent: EntityInstance, localTransform: FloatArray?): EntityInstance
actual fun create(entity: Entity, parent: EntityInstance, localTransform: DoubleArray?): EntityInstance

Creates a transform component for an entity with a local transform and parent.

Return

The newly created transform instance

Parameters

entity

The entity to add a transform to

parent

The parent transform instance (use NULL_ENTITY for root)

localTransform

The local transform as a 4x4 matrix in row-major order (or null)