asny / three-d

2D/3D renderer - makes it simple to draw stuff across platforms (including web)
MIT License
1.34k stars 110 forks source link

Add free orbit camera #474

Closed thatcomputerguy0101 closed 2 months ago

thatcomputerguy0101 commented 2 months ago

The existing orbit camera preserves up direction. While in many cases that is useful in keeping a sense of direction, there are some cases where there is no up direction. This adds another camera control set similar to the existing orbit, but free to have any direction be up.

thatcomputerguy0101 commented 2 months ago

The second commit of this PR could be omitted, which would leave implementing the control set up to the application using this library.

asny commented 2 months ago

Nice, thanks for the contribution 🙏