PatHightree / SpaceNavigator

SpaceNavigator driver for Unity3D
MIT License
173 stars 52 forks source link

Fixed scene view camera small input issue #29 #46

Closed bikusta closed 2 years ago

bikusta commented 2 years ago

Hi Pat,

the default epsilon 9.99999944E-11f used by Unity when comparing two Vector3 objects seems to be too small. At least in some cases. Therefore, I added options to adjust the translation and rotation epsilon.

For easier configuration, only the exponent has to be entered. In my case a value around 5 to 7 solved the movement. When changing back to the default value 11, the movement reappeared.

Stefan

SorraTheOrc commented 2 years ago

I can confirm this works nicely. Thank you @bikusta I've merged it into my own fork, I hope it gets merged in here soon.

SorraTheOrc commented 2 years ago

Actually this doesn't quite fix it for me. It is certainly better, but there is still some drift. 2021.2.9f1

bikusta commented 2 years ago

Hi @SorraTheOrc,

did you try different calibration values? Is it still drifting with a value of 5 for the "Translation Epsilon"?

mkoehmst commented 2 years ago

Thanks so much @bikusta -- Dropping the calibration levels to 6 fixed the drift for me on your branch