freshfork / p5.EasyCam

A p5.js library for easy 3D camera control.
https://freshfork.github.io/p5.EasyCam
MIT License
138 stars 33 forks source link

Documentation: How to assign pan to left mouse drag etc? #29

Closed berni421 closed 1 year ago

berni421 commented 1 year ago

Could the documentation please show how to use the handlers .. e.g from Peasycam

PeasyDragHandler handler = cam.getPanDragHandler(); cam.setLeftDragHandler(handler);

Thanks

jwdunn1 commented 1 year ago

Although there is no API for this, here is a sketch that demonstrates how to swap the handlers. I'll add a link to the readme for the next release.

berni421 commented 1 year ago

Perfect thanks