# 3d collision and z position

**URL:** <https://forum.kirupa.com/t/3d-collision-and-z-position/325705>\
**Category:** Uncategorized\
**Created:** [November 1, 2011, 5:54am UTC](https://forum.kirupa.com/t/3d-collision-and-z-position/325705 "2011-11-01T05:54:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phastings](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@phastings](https://forum.kirupa.com/u/phastings)\
**Post date:** [November 1, 2011, 5:54am UTC](https://forum.kirupa.com/t/3d-collision-and-z-position/325705/1 "2011-11-01T05:54:26Z")

</div>

i’m new to doing anything with 3d in flash and have a few questions.

i have a game where i have items coming down the z axis at a character at the base of the stage. all of the elements are embeded in a movieclip ‘ground’ that i’m moving down the z axis. question  
1)i can get the z position of the elements in ‘ground’ relative to the stage. when i try and get the z position of the items it’s always a static reference to the ‘ground’ movie clip. also how would i get the x position relative to the stage?

2)what’s the best way to determine hit collisions with the items hitting the character? I’m thinking i’ll have to check the item’s z position(re #1 above) and then determine it’s x position and if when it’s in the z range if it’s also in the x range it’s a hit. is there a better way to do this?

thanks.
