Back to Filament

setAccurateTranslationsEnabled

docs/android/dokka/filament-android/com.google.android.filament/-transform-manager/set-accurate-translations-enabled.md

1.75.01.1 KB
Original Source

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

setAccurateTranslationsEnabled

[main]
open fun setAccurateTranslationsEnabled(enable: Boolean)

Enables or disable the accurate translation mode. Disabled by default. When accurate translation mode is active, the translation component of all transforms is maintained at double precision. This is only useful if the mat4 version of setTransform() is used, as well as getTransformAccurate().

Parameters

main

enabletrue to enable the accurate translation mode, false to disable.

See also

isAccurateTranslationsEnabled
create(int, int, double[])
setTransform(int, double[])
getTransform(int, double[])
getWorldTransform(int, double[])