# Issue in moving camera to the position of a specific child

**URL:** https://discourse.threejs.org/t/issue-in-moving-camera-to-the-position-of-a-specific-child/49538
**Category:** Questions
**Created:** [March 24, 2023, 9:42am UTC](https://discourse.threejs.org/t/issue-in-moving-camera-to-the-position-of-a-specific-child/49538 "2023-03-24T09:42:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Srishti\_Agarwal](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/srishti_agarwal/32/34788_2.png) [@Srishti\_Agarwal](https://discourse.threejs.org/u/Srishti_Agarwal)
#### Post date: [March 24, 2023, 9:42am UTC](https://discourse.threejs.org/t/issue-in-moving-camera-to-the-position-of-a-specific-child/49538/1 "2023-03-24T09:42:21Z")

</div>

Hi all , I want my camera to focus on a specific child of the model .

var childObject = scene.getObjectByName(“Core\_Sacrum”);  
camera.position.set(childObject.position.x, childObject.position.y, childObject.position.z+5);  
camera.lookAt(childObject.position);

In the above code , I’m getting the position of the child on which I want to focus the camera , then I’m trying to set the camera on that position . But no matter what the position of the child is , the camera is always stuck at one spot , I tried giving the position manually also , but still it is at the same place.

---

<div class="post-metadata">

### Author: ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)
#### Post date: [March 27, 2023, 7:09pm UTC](https://discourse.threejs.org/t/issue-in-moving-camera-to-the-position-of-a-specific-child/49538/2 "2023-03-27T19:09:42Z")

</div>

This code fragment is not sufficient to guess what the problem is. If you can make an online demo (e.g. in CodePen or a similar site), it might help a lot.

One possible reason is if you have OrbitControls (or another controls). OrbitControls takes control over the camera, so you should not modify the camera manually, while OrbitControls is enabled.
