# Click event on 3D primitive

**URL:** <https://discourse.processing.org/t/click-event-on-3d-primitive/18426>\
**Category:** Coding Questions\
**Created:** [March 5, 2020, 5:40pm UTC](https://discourse.processing.org/t/click-event-on-3d-primitive/18426 "2020-03-05T17:40:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [March 5, 2020, 6:08pm UTC](https://discourse.processing.org/t/click-event-on-3d-primitive/18426/4 "2020-03-05T18:08:25Z")

</div>

You need to share some code. It shows your attempt, your coding level and it makes helping you easier.

Check these links, one is a previous discussion and the second one is mPicker, a p5.js lib made exactly for this:

- [https://github.com/physicsdavid/mPicker/tree/master/example](https://github.com/physicsdavid/mPicker/tree/master/example)
- [https://forum.processing.org/two/discussion/25255/mouse-click-event-in-3d-webgl](https://forum.processing.org/two/discussion/25255/mouse-click-event-in-3d-webgl)

Kf

---

_[View the full topic](https://discourse.processing.org/t/click-event-on-3d-primitive/18426)._
