# Parent object to camera - simple 3rd person camera \[SOLVED\]

**URL:** <https://forum.babylonjs.com/t/parent-object-to-camera-simple-3rd-person-camera-solved/26850>\
**Category:** Questions\
**Created:** [January 17, 2022, 6:07pm UTC](https://forum.babylonjs.com/t/parent-object-to-camera-simple-3rd-person-camera-solved/26850 "2022-01-17T18:07:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jozef\_Plata](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jozef_plata/32/30733_2.png) [@Jozef\_Plata](https://forum.babylonjs.com/u/Jozef_Plata)\
**Post date:** [January 17, 2022, 6:07pm UTC](https://forum.babylonjs.com/t/parent-object-to-camera-simple-3rd-person-camera-solved/26850/1 "2022-01-17T18:07:46Z")

</div>

Hi,

So I’m trying to figure out how to rotate my object with ArcRotateCamera - like a very simple 3rd person camera. So after I parent my obect to camera, the object dissapears. At first I thought it might while parenting inherit the transform, thus ending up too close to camera to render. However when I console.log the position of the object - it’s right there in the origin, but it’s not rendered.

So I’m a bit confused… Here’s the simple code:

[https://playground.babylonjs.com/#1BFGX4](https://playground.babylonjs.com/#1BFGX4)

---

<div class="post-metadata">

**Author:** ![Jozef\_Plata](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jozef_plata/32/30733_2.png) [@Jozef\_Plata](https://forum.babylonjs.com/u/Jozef_Plata)\
**Post date:** [January 17, 2022, 6:09pm UTC](https://forum.babylonjs.com/t/parent-object-to-camera-simple-3rd-person-camera-solved/26850/2 "2022-01-17T18:09:39Z")

</div>

Ok, right after I posted this I noticed there is this method which works!

```auto
box.setParent(camera);

```

---

<div class="post-metadata">

**Author:** ![Jozef\_Plata](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jozef_plata/32/30733_2.png) [@Jozef\_Plata](https://forum.babylonjs.com/u/Jozef_Plata)\
**Post date:** [January 17, 2022, 9:20pm UTC](https://forum.babylonjs.com/t/parent-object-to-camera-simple-3rd-person-camera-solved/26850/3 "2022-01-17T21:20:34Z")

</div>

Btw, here’s my solution. At first parenting seemed like a good thing, but dealing with matrices later might give you a headache. So you can do it just like this:

[https://playground.babylonjs.com/#1BFGX4#2](https://playground.babylonjs.com/#1BFGX4#2)
