processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.08k stars 3.22k forks source link

orbitControl() customizability #7091

Open eTrey13 opened 2 weeks ago

eTrey13 commented 2 weeks ago

Increasing access

Unsure

Most appropriate sub-area of p5.js?

Feature enhancement details

Make orbitControl have options to enable/disable if it controls zoom, pan, and rotation. Sometimes only controlling one or two of those would be useful.

welcome[bot] commented 2 weeks ago

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

VANSH3104 commented 2 weeks ago

I am interested in this issue you want a toggle between zoom pan and rotation you can achieve it by making an object having all properties and pass it as argument in function

inaridarkfox4231 commented 1 week ago

I am the person involved in modifying orbitControl(). Regarding rotation and zoom, this can be prevented by setting the coefficient to 0. Therefore, I feel like there is little point in making it an option, in my opinion. Regarding pan, it does not work on mobile tphones unless you use two or more fingers. The buttons used on the mouse are also different. I don't quite understand what the problem is.

However, if there is something useful other than the freeRotation option that I have prepared, and it makes sense in terms of convenience, I will not deny its introduction. Of course, in that case, you need to make sure that the default behavior does not change.