create

fun create(entity: Entity, parent: EntityInstance = 0)

Creates a transform component and associates it with the given entity. If this component already exists on the entity, it is first destroyed as if destroy was called.

Parameters

entity

An Entity to associate a transform component to.

parent

The Instance of the parent transform, or 0 if no parent.


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

Creates a transform component, initialized with localTransform (relative to the parent).

Parameters

entity

An Entity to associate a transform component to.

parent

The Instance of the parent transform, or 0 if no parent.

localTransform

The transform to initialize the transform component with.


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

Double-precision create.