# Get coordinates of max y position

**URL:** <https://discourse.threejs.org/t/get-coordinates-of-max-y-position/66598>\
**Category:** Questions\
**Tags:** camera, animation\
**Created:** [June 9, 2024, 12:13pm UTC](https://discourse.threejs.org/t/get-coordinates-of-max-y-position/66598 "2024-06-09T12:13:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zgodni](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/zgodni/32/29440_2.png) [@zgodni](https://discourse.threejs.org/u/zgodni)\
**Post date:** [June 9, 2024, 12:13pm UTC](https://discourse.threejs.org/t/get-coordinates-of-max-y-position/66598/1 "2024-06-09T12:13:56Z")

</div>

How to get the maximum position of y axis that is still visible in the scene.

 ![Screenshot 2024-06-09 at 2.13.26 PM](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/d/5d03567d08406bb7a10c4294075b6bd20acc7417.png)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [June 9, 2024, 1:12pm UTC](https://discourse.threejs.org/t/get-coordinates-of-max-y-position/66598/2 "2024-06-09T13:12:05Z")

</div>

At which depth and with what units? At camera lever that’s camera.y +/- camera.up \* 0.5, but that’s in UV, not in pixels.

---

<div class="post-metadata">

**Author:** ![zgodni](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/zgodni/32/29440_2.png) [@zgodni](https://discourse.threejs.org/u/zgodni)\
**Post date:** [June 9, 2024, 2:13pm UTC](https://discourse.threejs.org/t/get-coordinates-of-max-y-position/66598/3 "2024-06-09T14:13:34Z")

</div>

I guess it is better to explain what I am trying to do.

I am moving the (perspective) camera around the scene and while the camera is moving and rotating I want a selected mesh to always stay on the point described in the question for a few seconds.

Basicly similar movment to a HUD, but I cannot use HUD.
