View Full Version : Collision question
Ok I need to know how to check to see if a sphere and a triangle are colliding. I am programming in METAL basic so please dont use any GL commands or any C functions please.
I am in Precalc/Trig now and we are just going over matrixes and cramers rule, so I know a decent amount of math.
Fenris
2003.04.04, 11:16 PM
I'd point you here (http://www.gamedev.net/reference/list.asp?categoryid=45#99). Try out the Collision Detection using Ellipsoids (http://www.gamedev.net/reference/articles/article1026.asp) article.
It might be hard to get by without using any C, but I think you will be able to figure that one out. Besides, OpenGL doesn't do any collision detection, just drawing.
I hope this helps!
MacFiend
2003.04.05, 12:52 AM
If METAL Basic is anything like conventional BASIC (I wouldn't know), then you could probably (very slowly, I'd imagine) use the same techniques everyone else is using, but in a form suited for METAL Basic.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.