docs/android/dokka/filament-android/com.google.android.filament/-transform-manager/set-transform.md
//filament-android/com.google.android.filament/TransformManager/setTransform
[main]
open fun setTransform(i: Int, localTransform: Array<Float>)
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 openLocalTransformTransaction / commitLocalTransformTransaction.
main
| i | the EntityInstance of the transform component to set the local transform to. |
| localTransform | the local transform (i.e. relative to the parent). |
| getTransform |
[main]
open fun setTransform(i: Int, localTransform: Array<Double>)
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 openLocalTransformTransaction / commitLocalTransformTransaction.
main
| i | the EntityInstance of the transform component to set the local transform to. |
| localTransform | the local transform (i.e. relative to the parent). |
| getTransform(int, double[]) |
| getWorldTransform(int, double[]) |