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

Plane equations or something else?

Started by Tree Penguin Jan 2, 2004 at 11:51 AM 1 replies 350+ views
Original Post
Tree Penguin
Tree Penguin
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]
Zerosignull
Zerosignull
http://gpp.netfirms.com/algorithms/collisiondetection/
Tree Penguin
Tree Penguin
Thanks, that''s a very helpfull page !

Topic Locked

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

Sign in to reply to this topic.