# How to detect child objects in .gltf model with Three.js raycaster?

**URL:** <https://discourse.threejs.org/t/how-to-detect-child-objects-in-gltf-model-with-three-js-raycaster/36693>\
**Category:** Questions\
**Tags:** gltf-loader, raycaster\
**Created:** [April 3, 2022, 10:05pm UTC](https://discourse.threejs.org/t/how-to-detect-child-objects-in-gltf-model-with-three-js-raycaster/36693 "2022-04-03T22:05:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alibaverkahraman](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/alibaverkahraman/32/25381_2.png) [@alibaverkahraman](https://discourse.threejs.org/u/alibaverkahraman)\
**Post date:** [April 3, 2022, 10:05pm UTC](https://discourse.threejs.org/t/how-to-detect-child-objects-in-gltf-model-with-three-js-raycaster/36693/1 "2022-04-03T22:05:26Z")

</div>

I’m trying to learn Three.js raycaster. I have simple gltf model and I’m trying detect objects in gltf model. For example i want to click house in gltf model and my camera zooming to house. But my raycaster only detect gltf model, not house. Anybody can help me thank you.

my codepen: [https://codepen.io/alibaverkahraman/pen/GRyygRL](https://codepen.io/alibaverkahraman/pen/GRyygRL)  
i don’t upload gltf model on codepen but i load github  
[gltf-model/medieval\_fantasy\_book at master · alibaverkahraman/gltf-model · GitHub](https://github.com/alibaverkahraman/gltf-model/tree/master/medieval_fantasy_book)

---

<div class="post-metadata">

**Author:** ![Vasanth\_Kumar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vasanth_kumar/32/32965_2.png) [@Vasanth\_Kumar](https://discourse.threejs.org/u/Vasanth_Kumar)\
**Post date:** [April 6, 2022, 6:11pm UTC](https://discourse.threejs.org/t/how-to-detect-child-objects-in-gltf-model-with-three-js-raycaster/36693/2 "2022-04-06T18:11:59Z")

</div>

Can you try without ‘true’ parameter to detect child objects.

const intersects = rayCaster.intersectObjects(model,true);

const intersects = rayCaster.intersectObjects(model);
