Jump to content

  • Log In with Google      Sign In   
  • Create Account

Basic collosion detection


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Ys   Members   -  Reputation: 122

Like
Likes
Like

Posted 05 November 2001 - 12:07 PM

I need help on basic collosion detection with quads ive tried loads of things and cant get it too work also how would i when the collosion occurs to remove that quad from the screen is there a delete quad function or something like that please help me thanks for any help

Sponsor:

#2 mkaltner   Members   -  Reputation: 122

Like
Likes
Like

Posted 05 November 2001 - 12:55 PM

Well, simple detection would be, well, pretty simple.
When you draw the quad, keep track of where on the screen it is.
And I''m sure you''re trying to detect when it gets to a certain place, so you have those coordinates as well.
If the coordinate of the quad +/- the width/height/whatever is greater/less than where you want to no longer display it, then, stop displaying it.
You don''t have to delete the quad, you just stop drawing the quad and it''ll go away (if you''re clearing the GL_COLOR_BUFFER_BIT at least, which I''m sure you''re doing, I hope)

- Mike




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS