# Hit test does not work for .dae files in the scene

**URL:** <https://forums.kodeco.com/t/hit-test-does-not-work-for-dae-files-in-the-scene/22511>\
**Category:** 3D iOS Games by Tutorials\
**Created:** [November 10, 2016, 4:26pm UTC](https://forums.kodeco.com/t/hit-test-does-not-work-for-dae-files-in-the-scene/22511 "2016-11-10T16:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beckp](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/beckp/32/81494_2.png) [@beckp](https://forums.kodeco.com/u/beckp)\
**Post date:** [November 10, 2016, 4:26pm UTC](https://forums.kodeco.com/t/hit-test-does-not-work-for-dae-files-in-the-scene/22511/1 "2016-11-10T16:26:08Z")

</div>

Hit test as described for the geometry models works but does not work for .dae models that have been added to a scene. Stackflow seems to indicate that it is because the node does not have any geometry when the hit test is performed. Is there a method to hit test .dae models? I would like to be able to drag an object once selected. I am using Swift 3.

---

<div class="post-metadata">

**Author:** ![zoneman](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/zoneman/32/96938_2.png) [@zoneman](https://forums.kodeco.com/u/zoneman)\
**Post date:** [November 11, 2016, 7:50pm UTC](https://forums.kodeco.com/t/hit-test-does-not-work-for-dae-files-in-the-scene/22511/2 "2016-11-11T19:50:13Z")

</div>

Have you considered have Xcode convert the .dae file to .scn files?

In the project, select the .dae file, go to the Editor Menu, select:  
Convert to cenKit scene file format (.scn)

---

<div class="post-metadata">

**Author:** ![beckp](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/beckp/32/81494_2.png) [@beckp](https://forums.kodeco.com/u/beckp)\
**Post date:** [November 13, 2016, 5:57pm UTC](https://forums.kodeco.com/t/hit-test-does-not-work-for-dae-files-in-the-scene/22511/3 "2016-11-13T17:57:28Z")

</div>

Thank you. Yes, that method works and appears that it is the simplest solution.
