setTransform

fun TransformManager.setTransform(transformInstance: Int, localTransform: Transform)

Sets a local transform of a transform component.

This operation can be slow if the hierarchy of transform is too deep, and this will be particularly bad when updating a lot of transforms. In that case, consider using TransformManager.openLocalTransformTransaction / TransformManager.commitLocalTransformTransaction.

Parameters

transformInstance

the EntityInstance of the transform component to set the local transform to.

localTransform

the local transform (i.e. relative to the parent).

See also

TransformManager.getTransform