Back to Filament

setFocusDistance

docs/android/dokka/filament-android/com.google.android.filament/-camera/set-focus-distance.md

1.75.0555 B
Original Source

//filament-android/com.google.android.filament/Camera/setFocusDistance

setFocusDistance

[main]
open fun setFocusDistance(distance: Float)

Set the camera focus distance in world units

Parameters

main

distanceDistance from the camera to the focus plane in world units. Must be positive and larger than the camera's near clipping plane.