Back to Filament

getTransform

docs/android/dokka/filament-android/com.google.android.filament/-transform-manager/get-transform.md

1.75.01.7 KB
Original Source

//filament-android/com.google.android.filament/TransformManager/getTransform

getTransform

[main]
open fun getTransform(i: Int, outLocalTransform: Array<Float>): Array<Float>

open fun getTransform(i: Int, outLocalTransform: Array<Double>): Array<Double>

Returns the local transform of a transform component.

Return

the local transform of the component (i.e. relative to the parent). This always returns the value set by setTransform().

Parameters

main

ithe EntityInstance of the transform component to query the local transform from.
outLocalTransforma 16 float array to receive the result. If null is given, a new suitable array is allocated.

See also

setTransform