Hey all
I use PeasyCam quite a lot, and I think many of you do too.
It’s perfect for getting that immediate 3D camera, with minimum code.
But when i dug a little deeper in the library docs I found some great features
which of course I never used.
Some of them are more advanced like ViewPorts to get multiple points of views etc…
but I wanted to post here just the small things I took away from it
that I think should be default when using this great library.
(here’s a link to the library docs )
bound the min and max distances so you don’t zoom in/out too much:
cam.setMaximumDistance(900);
cam.setMinimumDistance(500);
Control the sensitivity of the zoom action. The default is way too sensitive.
cam.setWheelScale(0.03);
Last one is very cool too,
Add a HUD that allows you to display 2D stuff on top of the rotatable 3D view.
Perfect for UI and debugging
Use it in draw()
cam.beginHUD();
... draw something
cam.endHUD();
ENJOY