Skip to main content
gamedev.net
🔒 Locked

Collision Question

Started by Mad_Kod3r Apr 29, 2006 at 11:41 AM 0 replies 350+ views
Original Post
Mad_Kod3r
Mad_Kod3r
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~
Bob Janova
Bob Janova
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.