Back to Filament

getDirection

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

1.75.0971 B
Original Source

//filament-android/com.google.android.filament/LightManager/getDirection

getDirection

[main]
open fun getDirection(i: Int, out: Array<Float>): Array<Float>

returns the light's direction in world space

Return

An array of 3 float containing the light's direction.

Parameters

main

iInstance of the component obtained from getInstance().
outAn array of 3 float to receive the result or null.