# PeasyCam library - take more control

**URL:** <https://discourse.processing.org/t/peasycam-library-take-more-control/11899>\
**Category:** Libraries\
**Created:** [June 7, 2019, 3:44pm UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899 "2019-06-07T15:44:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yairkass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yairkass/32/5366_2.png) [@yairkass](https://discourse.processing.org/u/yairkass)\
**Post date:** [June 7, 2019, 3:44pm UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899/1 "2019-06-07T15:44:44Z")

</div>

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](http://mrfeinberg.com/peasycam/reference/index.html?overview-tree.html) )

**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

---

<div class="post-metadata">

**Author:** ![InferNova](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/infernova/32/6009_2.png) [@InferNova](https://discourse.processing.org/u/InferNova)\
**Post date:** [June 7, 2019, 10:45pm UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899/2 "2019-06-07T22:45:21Z")

</div>

Forever in grace are all of us. A keeper of the PeasyCam.

---

<div class="post-metadata">

**Author:** ![LuisFerreira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/luisferreira/32/9493_2.png) [@LuisFerreira](https://discourse.processing.org/u/LuisFerreira)\
**Post date:** [June 19, 2020, 10:15am UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899/3 "2020-06-19T10:15:52Z")

</div>

I just passed by this topic, and there is another GREAT feature of Peasycam: when you find a camera angle you like, save it with `Camera state = camera.getState()`, and later you can jump back to it with `camera.setState(state, delay)`. And to finish it off there is the option to smooth the jump by adding a delay.

Also, after many failed attemps, i finally got Peasycam working with keys, so you can move around with WASD. I still need to cleanup the code a bit but if someone is interested, PM me.

---

<div class="post-metadata">

**Author:** ![LuisFerreira](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/luisferreira/32/9493_2.png) [@LuisFerreira](https://discourse.processing.org/u/LuisFerreira)\
**Post date:** [July 24, 2020, 1:41pm UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899/4 "2020-07-24T13:41:22Z")

</div>

Leaving this here for the future: Peasycam + keyboard keys = FPV Cam 😃

Visit this [topic](https://discourse.processing.org/t/first-person-view-cam-fpscam/22816) or this (temporary) [page](https://luisferreira.space/projects/fpvcam/)
