View Full Version : Making a solid polygon
11-27-2011, 12:40 PM
I need to make a solid polygon that will not allow other polygons to pass through it. What would be the best solution? It will act as a wall in a way. And possibly be loaded into an array so a map may be created. This is for a game.
Thank you for your time.
11-27-2011, 01:47 PM
OpenGL has nothing to do with how "solid" something is. It simply draws what you tell it to draw. If you want something to not pass through something else, then it is up to you to not tell OpenGL to draw it passing through that something else.
You need to use some form of collision detection, on the CPU, to see if something is trying to pass through it. Then, you need to move it away so that it isn't colliding.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.