# Point ArcRotateCamera at position?

**URL:** <https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824>\
**Category:** Questions\
**Created:** [April 28, 2019, 3:55am UTC](https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824 "2019-04-28T03:55:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelpsie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kelpsie/32/2004_2.png) [@Kelpsie](https://forum.babylonjs.com/u/Kelpsie)\
**Post date:** [April 28, 2019, 3:55am UTC](https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824/1 "2019-04-28T03:55:16Z")

</div>

I’d like to, when I click, center the camera on the clicked sphere in this playground.  
Not _target_ the sphere, but position the camera such that the sphere is between the camera and the target.

[https://www.babylonjs-playground.com/#RPF0N0](https://www.babylonjs-playground.com/#RPF0N0)

Thanks c:

---

<div class="post-metadata">

**Author:** ![withADoveInOneHand](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/withadoveinonehand/32/1243_2.png) [@withADoveInOneHand](https://forum.babylonjs.com/u/withADoveInOneHand)\
**Post date:** [April 28, 2019, 5:42am UTC](https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824/2 "2019-04-28T05:42:39Z")

</div>

`camera.target = {positionVector}`  
or  
`camera.setTarget({positionVector})`  
probably

or maybe .position somewhere along the line from the center through the sphere

---

<div class="post-metadata">

**Author:** ![Kelpsie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kelpsie/32/2004_2.png) [@Kelpsie](https://forum.babylonjs.com/u/Kelpsie)\
**Post date:** [April 28, 2019, 4:16pm UTC](https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824/3 "2019-04-28T16:16:06Z")

</div>

The target of the camera is the point it rotates around. I want to still be rotating about the center of the scene while looking at the clicked mesh. As though I manually left-click-dragged the screen to place the mesh in the center.

As for position, you can’t set the position of an ArcRotateCamera. If I could find the alpha and beta of a mesh relative to a target I could set that instead, but I’m not sure that’s possible.

---

<div class="post-metadata">

**Author:** ![withADoveInOneHand](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/withadoveinonehand/32/1243_2.png) [@withADoveInOneHand](https://forum.babylonjs.com/u/withADoveInOneHand)\
**Post date:** [April 28, 2019, 7:18pm UTC](https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824/4 "2019-04-28T19:18:00Z")

</div>

[https://doc.babylonjs.com/api/classes/babylon.arcrotatecamera#setposition](https://doc.babylonjs.com/api/classes/babylon.arcrotatecamera#setposition)  
No?  
Somewhere along the circle or sphere?

Might have to get creative or end up in quaternion territory.

---

<div class="post-metadata">

**Author:** ![Kelpsie](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kelpsie/32/2004_2.png) [@Kelpsie](https://forum.babylonjs.com/u/Kelpsie)\
**Post date:** [April 28, 2019, 9:39pm UTC](https://forum.babylonjs.com/t/point-arcrotatecamera-at-position/2824/5 "2019-04-28T21:39:00Z")

</div>

Oh you’re right, my bad. I was trying to set the position itself; didn’t realize setPosition was a thing.

Thanks~
