Sign in to follow this  
Mad_Kod3r

Collision Question

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this