Original Post
Hi, i am trying to write a line-triangle collision function.
I wrote this code about 2 years ago but i've been out of business for a year so math isn't that well anymore and i still haven't found my old code
.
If anyone can give me a simple explanation or example or a site that contains that such information, i am sure i'll get into it again.
Thanks in advance, TP
Ow, and the line equation i use is like this:
class LineEQ{
public:
float ya,yc; // y=ax+c
float za,zc; // z=ax+c
float bx,ex; // bx<=x<=ex
char dim; // dimension: 0=x,1=y,2=z
};
[edited by - Tree Penguin on January 2, 2004 12:55:32 PM]