Archived

This topic is now archived and is closed to further replies.

cyanide

the walls mean stop? don't they?

Recommended Posts

hi, i''ve been experimenting with nehe''s lesson 10 and 23, but one thing i can''t get to work is the clipping. like i pass straight thru the walls without being stopped. like is there any way to stop passing thru'' the walls, i''ve tried using the glpickmatrix function, but it only works in one direction and is not very accurate. what can be the other way of implementing this... cyanide

Share this post


Link to post
Share on other sites
I hate to break the news to you, but there is a whole separate world called collision detection and it is not a function of the API, you would have to write your own routines for banging your head against the walls.

NeoGL

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
hi,
well then where can i get it?
like in simple plain english? a tut for that matter? i''m new to opengl

BTW Neogl: if you know something more it doesn''t neccesarily mean that you have to be rude...??



Greetz from the "CYANIDE"
http://www.sanchit.8m.com/

Share this post


Link to post
Share on other sites
yeah, he wasn''t rude.

do a search in the programming resources for "collision detection" or "physics." i used Chris Hecker''s physics tutorials to help me write collision detection, but it might be too much for the game you''re doing. i''m not sure what you''re doing, but i''m doing a simulation, so it was necessary. good luck.

a2k

Share this post


Link to post
Share on other sites
But what are some websites that feature good tutorials for collision detection on walls!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?




Open mouth, insert foot

Share this post


Link to post
Share on other sites
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
}

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites