Skip to main content
gamedev.net
šŸ”’ Locked

Help needed with ray intersection

Started by Alessandro Dec 21, 2008 at 2:57 PM 1 replies 550+ views
Original Post
Alessandro
Alessandro
Hi, I'm actually programming an Iphone (Opengl ES 1.x) and I'm trying to build a routine that simulates picking testing ray intersection with bounding boxes. I have the world space coordinates for the start and end point of the ray, so my question is: how do I build the ray vector out of these coordinates ?
RobTheBloke
RobTheBloke
RayOrigin = start;
RayDir = end - start;

Or did you mean to ask a different question?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.