jdf / peasycam

Dead-simple mouse-driven camera for Processing
http://MrFeinberg.com/peasycam/
Apache License 2.0
116 stars 35 forks source link

Y axis still vertical ? #29

Closed KoiKoiDesign closed 6 years ago

KoiKoiDesign commented 6 years ago

Hi Jonathan,

I'm currently using your library but I didn't find at yet how to set up correctly the camera. I explain : I want to set up the cam wich Y axis stays vertical. I allready built my own cam here , with the Y axis allways vertical. I didn't find how to do that with Peasycam.

Thanks for your answer !

Clément

(btw I try differents set up and apparently camera.setSuppressRollRotationMode() did nothing different to the free mode an my computer)

jdf commented 6 years ago

Perhaps camera.setYawRotationMode()?

KoiKoiDesign commented 6 years ago

Hi Jonathan,

thanks for your answer !

I try camera.setYawRotationMode() but in this case, the camera is turning only around Y axis (with mouseX). If you check my cam on OpenProcessing, the cam is turning around Y axis with mouseX dragged and it also turning with mouseY dragged. According to you, is it possible to do the same with peasyCam ? Maybe there is a coding (or magic) trick…

Clément

jdf commented 6 years ago

I don't see how the "Y axis is always vertical" in your sketch.