# Determine DisplayObject Direction in 3D

**URL:** <https://forum.kirupa.com/t/determine-displayobject-direction-in-3d/275487>\
**Category:** flash\
**Created:** [November 14, 2008, 8:53am UTC](https://forum.kirupa.com/t/determine-displayobject-direction-in-3d/275487 "2008-11-14T08:53:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Si1](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Si1](https://forum.kirupa.com/u/Si1)\
**Post date:** [November 14, 2008, 8:53am UTC](https://forum.kirupa.com/t/determine-displayobject-direction-in-3d/275487/1 "2008-11-14T08:53:59Z")

</div>

Hi guys,

I have been playing around with this for days now and cannot figure it out. How can I work out which way a display object is facing (either towards or away from the screen) when it has been rotated in 3D space? I have tried numerous matrix and vector related calculations (including the usual dot product trick) but haven’t been able to nail this down yet.

Any ideas?
