Advertisement

the walls mean stop? don't they?

Started by October 30, 2000 12:55 AM
11 comments, last by cyanide 24 years ago
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
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";
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
Advertisement
and even more bad news "it is the most difficult thing to do in a game", though walls aint to bad

http://members.xoom.com/myBollux
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/
he wasnt rude at all.
ok, i suggest u to write your own CD rutins, all u need to know is intersections testing, its a math thing, look it up on the net.
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
------------------General Equation, this is Private Function reporting for duty, sir!a2k
Advertisement
hi,
thanks for all the advice.
and yup! sorry neo, you weren''t rude.
because of my bad english (i''m not an indian) and the phrase "banging your head against the walls" made me a slightly confused. lol

thanks again,
san.

Greetz from the "CYANIDE"
http://www.sanchit.8m.com/
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";
But what are some websites that feature good tutorials for collision detection on walls!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?



Open mouth, insert foot
hey dont post such EXPLICIT pics
i could practically see everything
You probably won''t go far wrong if you check here:
www.flipcode.com
It has lots of tutorials and articles on all kinds of things. I think there are enough about colission detection too.
Prosser: But the plans were on display.Arthur Dent: On display? I eventually had to go down to the cellar.Prosser: That's the display department.Arthur Dent: With a torch.Prosser: The lights had probably gone.Arthur Dent: So had the stairs.Prosser: But you did see the notice, didn't you?Arthur Dent: Oh, yes. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign outside the door saying "Beware of the Leopard." Ever thought of going into advertising?

This topic is closed to new replies.

Advertisement