# Reset orbitControl()

**URL:** https://discourse.processing.org/t/reset-orbitcontrol/33576
**Category:** Coding Questions
**Created:** [November 17, 2021, 3:47pm UTC](https://discourse.processing.org/t/reset-orbitcontrol/33576 "2021-11-17T15:47:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![thesandrobrito](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thesandrobrito/32/12634_2.png) [@thesandrobrito](https://discourse.processing.org/u/thesandrobrito)
#### Post date: [November 17, 2021, 3:47pm UTC](https://discourse.processing.org/t/reset-orbitcontrol/33576/1 "2021-11-17T15:47:26Z")

</div>

Hello everyone,  
I am working on an application where if I press a button I enable orbitControl, if I press another one it should reset to a automatic rotation.

Is there anyway to reset orbitControl to 0 so the environment goes back to the first position?

---

<div class="post-metadata">

### Author: ![KumuPaul](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kumupaul/32/13072_2.png) [@KumuPaul](https://discourse.processing.org/u/KumuPaul)
#### Post date: [November 17, 2021, 11:36pm UTC](https://discourse.processing.org/t/reset-orbitcontrol/33576/2 "2021-11-17T23:36:39Z")

</div>

You can reset the camera to its default settings with the [`camera()`](https://p5js.org/reference/#/p5/camera) function

https://openprocessing.org/sketch/1358456/embed/?plusEmbedHash=OGUyNTc0YzVlMmI2NTNiZTFiNDM1ZDBiYWU4NDJmNjMxNjc2YTc3NGQ1NDA2MzAzYzZlYTBkMjM3NDU0ODg4MmRjMDE0OGQ1MGU4N2YwZmM0OWY4ZTE5M2Y0ZjI5NWVlY2FmMjgzZGU0NjMwZGI5NjkzYzkwYTZkODEwZWY5ODd4bkpySkFQWkgwU2lIdTZWdmVKeXRVNElEQWNmcDcwN1ZzOERjSWNPa3l3Q2FtR2IvaTF0Ty9pYU5FajFrd1I1UGdMeFBudHBWRTRhTURaeUJwVEF0UT09&plusEmbedTitle=true

---

<div class="post-metadata">

### Author: ![thesandrobrito](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thesandrobrito/32/12634_2.png) [@thesandrobrito](https://discourse.processing.org/u/thesandrobrito)
#### Post date: [November 18, 2021, 9:18am UTC](https://discourse.processing.org/t/reset-orbitcontrol/33576/3 "2021-11-18T09:18:23Z")

</div>

Thank you so much! It worked perfectly
