realbasic-games
[Top] [All Lists]

Vector behind camera

To: RB Games <realbasic-games at lists dot realsoftware dot com>
Subject: Vector behind camera
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Sat, 26 Jun 2004 19:38:39 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
List-help: <mailto:realbasic-games-request@lists.realsoftware.com?subject=help>
List-id: REALbasic Games <realbasic-games.lists.realsoftware.com>
List-post: <mailto:realbasic-games@lists.realsoftware.com>
I'm still struggling with the "is this vector behind the camera?" question.

I tried "if view.camera.orientation.transform(theVector).z < view.camera.z then", but this doesn't make logical sense to me, and it doesn't work either.

Please anyone (Joe?), how do I figure out of a vector is behind the camera (vector and quaterion)???

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>