# collision detection on nested objects

**URL:** <https://discussions.unity.com/t/collision-detection-on-nested-objects/402515>\
**Category:** Physics\
**Created:** [November 26, 2009, 4:24pm UTC](https://discussions.unity.com/t/collision-detection-on-nested-objects/402515 "2009-11-26T16:24:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_86724805](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@anon\_86724805](https://discussions.unity.com/u/anon_86724805)\
**Post date:** [November 26, 2009, 4:24pm UTC](https://discussions.unity.com/t/collision-detection-on-nested-objects/402515/1 "2009-11-26T16:24:23Z")

</div>

hi

i am having some trouble setting up collision for a spacecraft. Maybe i am settign it up wrong or misunderstanding the process so any help woudl be appreciated.

the spacecraft is modelled in 3dsMAX and is made up of a few diferent objects so when imported into unity it comes up as a prefab object.

if i try to add any control script or configurable joint to it it says it will lose the prefab connection, and i think this will mean i will be unable to edit it from within max and update it automatically.

i have therefore created a cube and then nested the ship as a child of the cube, and add the control script to the cube instead which works fine. the problem is that the colider is still a cube and not the shape of the ship.

if i try and set a mesh colider to the cube and use a lowres object the colider still does not represent the shape object as it is too small and if i scale the cube i also scale the ship model.

maybe i am setting this up wrong, but i would like to model the ship and low res colider within max, import it into unity, hide the lowres object and use it as a colider, but still be alowed to add control scripts etc to the imported prefab, and still eb abel to make changes to it in max.

any ideas to clear up this confusion would be appreciated.

Taran

---

<div class="post-metadata">

**Author:** ![andeeeee](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@andeeeee](https://discussions.unity.com/u/andeeeee)\
**Post date:** [November 27, 2009, 2:38pm UTC](https://discussions.unity.com/t/collision-detection-on-nested-objects/402515/2 "2009-11-27T14:38:25Z")

</div>

Rather than use a cube as the parent object, you could just use an empty object (menu GameObject \> Create Empty). This starts off with no collider, so you can easily add an invisible mesh and use that to define a MeshCollider.
