Jump to content
  • Advertisement
Sign in to follow this  
Mad_Kod3r

Collision Question

This topic is 4463 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

I am makeing a simple OpenGL game where the window will be like for example 10 X 10 (though you wouldnt want it this small) and have blocks arounf the whole perimeter and have a block the same iz in the middle moving in random directions. I am gonna have a function that makes the mov_block and perim_block, and have to different squares the same size for collision tes and make it invisible but it tranparent. If the move_block hits a perim_block it will start to move in the opposite direction. i was wondering how can I make it so every time I call the function to place another perim_block around the window, it places the collision block in the same position so i dont have to do it every time? Thanks!!!!! ~Mad_Kod3r~

Share this post


Link to post
Share on other sites
Advertisement
Make the collision test between 'real' blocks, instead of special collision blocks, if the things are the same shape anyway. Having extra blocks just takes up memory for no reason.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!