# Mouse interaction with 3D objects / objects on 3D plane

**URL:** <https://discourse.processing.org/t/mouse-interaction-with-3d-objects-objects-on-3d-plane/19499>\
**Category:** Coding Questions\
**Created:** [April 7, 2020, 10:55am UTC](https://discourse.processing.org/t/mouse-interaction-with-3d-objects-objects-on-3d-plane/19499 "2020-04-07T10:55:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 7, 2020, 11:25am UTC](https://discourse.processing.org/t/mouse-interaction-with-3d-objects-objects-on-3d-plane/19499/2 "2020-04-07T11:25:48Z")

</div>

Basically when you draw the ellipses (with all translate and rotate in place) zse screenX and screenY to store its 2D position

check this position against mouse pos

> **[bohnacker/p5js-screenPosition](https://github.com/bohnacker/p5js-screenPosition)**
>
> This function provides a solution to the missing screenX and screenY functions in p5.js. See https://github.com/processing/p5.js/issues/1553 for the discussion. - bohnacker/p5js-screenPosition

---

_[View the full topic](https://discourse.processing.org/t/mouse-interaction-with-3d-objects-objects-on-3d-plane/19499)._
