Jump to content
  • Advertisement

Archived

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

cyanide

the walls mean stop? don't they?

This topic is 6413 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
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

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
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.

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
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/

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
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!