Skip to main content
GameDev.net gamedev.net
🔒 Locked

intersection between a triangle and a line

Started by vincoof Jan 30, 2002 at 6:46 AM 5 replies 3.2k views
Original Post
vincoof
vincoof
I''m looking for a function which gives me information about a intersectionpoint. horniestly the function should look like this: vect3 findintersection( vect3 trianglepoints[3], vect3 linestart, vect3 lineend ); I need a triangle and the line to test. is the line goes throught the triangle, the function should return the intersectionpoint. if the returnvalue = lineend, the line did not vcontact the triangle. can anyone help me ? (i know, my english is godlike ))
vincoof
vincoof
Thank you for the guy who wanted this help.
Hope it will help him.

As for the source tag thingy, please remember that non-tagged source is annoying when smileys or tags are into the code.
(there'' one smiley in the code above)
you can''t write ":" and "(" without a white space, and you can''t write "array[" and "i" and "]" without spaces.

Anyhow, thanx for the code.

Topic Locked

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

Sign in to reply to this topic.