Advertisement

the walls mean stop? don't they?

Started by October 30, 2000 12:55 AM
11 comments, last by cyanide 24 years ago
I remember NeHe posted news about a basic collision detection demo. Its dead easy and can be found here (i think): http://welcome.to/BiendschmofansTutorialsOfOGLGlander

basicly it works like this:

dist = GetDistance; //write a func to return tha distance between objs using trig/pythag
if (dist <= 0)
{
collision = true
}
[size="1"]
okay...

I read every single tutorial on collision detection and response at flipcode.com. The thing is, they don't provide any source code other than little chunks with classes like "GLVertex" that already have normals and stuff defined, unfortunatly I am such a dumbass that I can't write these classes myself!! So I was wondering if there were any good sites with sample source on collision detection any help would be greatly appreciated.

{And if you don't help me I'll post that picture again)



Open mouth, insert foot

Edited by - oglman on November 4, 2000 5:48:55 PM
Advertisement
yup!
i read the source code about those sphere but how can i implement this in lesson 10 or 23 i don''t know? please anyone with some source code post it here.
any help would be appreciated!

thanks in advance.


Greetz from the "CYANIDE"
http://www.sanchit.8m.com/
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";

This topic is closed to new replies.

Advertisement