wasabia / three_dart

three.js rewrite by Dart, Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.
MIT License
450 stars 80 forks source link

Controls in Android or ios #84

Closed SerJoG closed 1 year ago

SerJoG commented 2 years ago

Sorry for bothering you. How can I enable controls like rotation and zoom in mobile device like arcbal or trackball? I tried to see these but threejsm.Trackballcontrols and threejsm.arcballcontrols raise an exception that tells that null check on a null value, but I copied your example.

wasabia commented 2 years ago

https://github.com/wasabia/three_dart/blob/main/example/lib/misc_controls_trackball.dart

Works as expected on iOS, i did not see any error.

mark-nicepants commented 1 year ago

Closing issue as it is answered and there was no followup. Please add a new issue if you have any more questions