TransformManager

actual class TransformManager

TransformManager allows managing transforms (4x4 matrices) for entities.

Entities can have a transform component that defines their position, rotation, and scale in world space. Transforms can be organized in a hierarchy where each entity can have a parent, allowing relative transformations.

The TransformManager maintains the transform hierarchy and automatically computes world transforms from local transforms and parent transforms.

See also

expect class TransformManager

TransformManager allows managing transforms (4x4 matrices) for entities.

Entities can have a transform component that defines their position, rotation, and scale in world space. Transforms can be organized in a hierarchy where each entity can have a parent, allowing relative transformations.

The TransformManager maintains the transform hierarchy and automatically computes world transforms from local transforms and parent transforms.

See also

actual class TransformManager(jsTransformManager: TransformManager)

TransformManager allows managing transforms (4x4 matrices) for entities.

Entities can have a transform component that defines their position, rotation, and scale in world space. Transforms can be organized in a hierarchy where each entity can have a parent, allowing relative transformations.

The TransformManager maintains the transform hierarchy and automatically computes world transforms from local transforms and parent transforms.

See also

actual class TransformManager

TransformManager allows managing transforms (4x4 matrices) for entities.

Entities can have a transform component that defines their position, rotation, and scale in world space. Transforms can be organized in a hierarchy where each entity can have a parent, allowing relative transformations.

The TransformManager maintains the transform hierarchy and automatically computes world transforms from local transforms and parent transforms.

See also

actual class TransformManager

TransformManager allows managing transforms (4x4 matrices) for entities.

Entities can have a transform component that defines their position, rotation, and scale in world space. Transforms can be organized in a hierarchy where each entity can have a parent, allowing relative transformations.

The TransformManager maintains the transform hierarchy and automatically computes world transforms from local transforms and parent transforms.

See also

Constructors

Link copied to clipboard
constructor(jsTransformManager: TransformManager)

Properties

Link copied to clipboard

Enables or disables accurate translations (high precision translation for large worlds).

Enables or disables accurate translations (high precision translation for large worlds).

Enables or disables accurate translations (high precision translation for large worlds).

Enables or disables accurate translations (high precision translation for large worlds).

Enables or disables accurate translations (high precision translation for large worlds).

Link copied to clipboard
val nativeTransformManager: TransformManager

Functions

Link copied to clipboard

Commits a local transform transaction.

Commits a local transform transaction.

Commits a local transform transaction.

Commits a local transform transaction.

Commits a local transform transaction.

Link copied to clipboard
actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

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

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

expect fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

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

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

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

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

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

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

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

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

actual fun create(entity: Entity): EntityInstance

Creates a transform component for an entity with identity transform.

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

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

Link copied to clipboard
actual fun destroy(entity: Entity)

Destroys the transform component for an entity.

expect fun destroy(entity: Entity)

Destroys the transform component for an entity.

actual fun destroy(entity: Entity)

Destroys the transform component for an entity.

actual fun destroy(entity: Entity)

Destroys the transform component for an entity.

actual fun destroy(entity: Entity)

Destroys the transform component for an entity.

Link copied to clipboard
actual fun getChildCount(instance: EntityInstance): Int

Gets the number of child transforms.

expect fun getChildCount(instance: EntityInstance): Int

Gets the number of child transforms.

actual fun getChildCount(instance: EntityInstance): Int

Gets the number of child transforms.

actual fun getChildCount(instance: EntityInstance): Int

Gets the number of child transforms.

actual fun getChildCount(instance: EntityInstance): Int

Gets the number of child transforms.

Link copied to clipboard
actual fun getChildren(instance: EntityInstance, outEntities: IntArray?): IntArray

Gets the child entities of a transform.

expect fun getChildren(instance: EntityInstance, outEntities: IntArray?): IntArray

Gets the child entities of a transform.

actual fun getChildren(instance: EntityInstance, outEntities: IntArray?): IntArray

Gets the child entities of a transform.

actual fun getChildren(instance: EntityInstance, outEntities: IntArray?): IntArray

Gets the child entities of a transform.

actual fun getChildren(instance: EntityInstance, outEntities: IntArray?): IntArray

Gets the child entities of a transform.

Link copied to clipboard
actual fun getInstance(entity: Entity): EntityInstance

Gets the transform instance for an entity.

expect fun getInstance(entity: Entity): EntityInstance

Gets the transform instance for an entity.

actual fun getInstance(entity: Entity): EntityInstance

Gets the transform instance for an entity.

actual fun getInstance(entity: Entity): EntityInstance

Gets the transform instance for an entity.

actual fun getInstance(entity: Entity): EntityInstance

Gets the transform instance for an entity.

Link copied to clipboard
actual fun getParent(instance: EntityInstance): Entity

Gets the parent entity of a transform.

expect fun getParent(instance: EntityInstance): Entity

Gets the parent entity of a transform.

actual fun getParent(instance: EntityInstance): Entity

Gets the parent entity of a transform.

actual fun getParent(instance: EntityInstance): Entity

Gets the parent entity of a transform.

actual fun getParent(instance: EntityInstance): Entity

Gets the parent entity of a transform.

Link copied to clipboard
actual fun getTransform(instance: EntityInstance, outLocalTransform: DoubleArray?): DoubleArray
actual fun getTransform(instance: EntityInstance, outLocalTransform: FloatArray?): FloatArray

Gets the local transform for a transform instance.

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

Gets the local transform for a transform instance.

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

Gets the local transform for a transform instance.

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

Gets the local transform for a transform instance.

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

Gets the local transform for a transform instance.

Link copied to clipboard
actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: DoubleArray?): DoubleArray
actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: FloatArray?): FloatArray

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

expect fun getWorldTransform(instance: EntityInstance, outWorldTransform: DoubleArray?): DoubleArray
expect fun getWorldTransform(instance: EntityInstance, outWorldTransform: FloatArray?): FloatArray

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

actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: DoubleArray?): DoubleArray
actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: FloatArray?): FloatArray

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

actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: DoubleArray?): DoubleArray
actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: FloatArray?): FloatArray

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

actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: DoubleArray?): DoubleArray
actual fun getWorldTransform(instance: EntityInstance, outWorldTransform: FloatArray?): FloatArray

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

Link copied to clipboard
actual fun hasComponent(entity: Entity): Boolean

Checks if an entity has a transform component.

expect fun hasComponent(entity: Entity): Boolean

Checks if an entity has a transform component.

actual fun hasComponent(entity: Entity): Boolean

Checks if an entity has a transform component.

actual fun hasComponent(entity: Entity): Boolean

Checks if an entity has a transform component.

actual fun hasComponent(entity: Entity): Boolean

Checks if an entity has a transform component.

Link copied to clipboard

Opens a local transform transaction.

Opens a local transform transaction.

Opens a local transform transaction.

Opens a local transform transaction.

Opens a local transform transaction.

Link copied to clipboard
actual fun setParent(instance: EntityInstance, newParent: EntityInstance)

Sets the parent of a transform.

expect fun setParent(instance: EntityInstance, newParent: EntityInstance)

Sets the parent of a transform.

actual fun setParent(instance: EntityInstance, newParent: EntityInstance)

Sets the parent of a transform.

actual fun setParent(instance: EntityInstance, newParent: EntityInstance)

Sets the parent of a transform.

actual fun setParent(instance: EntityInstance, newParent: EntityInstance)

Sets the parent of a transform.

Link copied to clipboard
actual fun setTransform(instance: EntityInstance, localTransform: DoubleArray)
actual fun setTransform(instance: EntityInstance, localTransform: FloatArray)

Sets the local transform for a transform instance.

expect fun setTransform(instance: EntityInstance, localTransform: DoubleArray)
expect fun setTransform(instance: EntityInstance, localTransform: FloatArray)

Sets the local transform for a transform instance.

actual fun setTransform(instance: EntityInstance, localTransform: DoubleArray)
actual fun setTransform(instance: EntityInstance, localTransform: FloatArray)

Sets the local transform for a transform instance.

actual fun setTransform(instance: EntityInstance, localTransform: DoubleArray)
actual fun setTransform(instance: EntityInstance, localTransform: FloatArray)

Sets the local transform for a transform instance.

actual fun setTransform(instance: EntityInstance, localTransform: DoubleArray)
actual fun setTransform(instance: EntityInstance, localTransform: FloatArray)

Sets the local transform for a transform instance.