1. I need a way to distinguish between two areas in my game. the orange and blue in the image illistrates the way in which I want them distinguished. between the “in”(orange) and the “out”(blue).
2. I need a way to fill the “out”(blue) area with a new object(s).
[clarification] I used ms paint to add the orange and blue on the second image.
the way the game works is, the player draws lines to “trap” the computer controlled object into smaller and smaller areas. I’m sure many of you have played similar games before.
once I’ve solved the first problem, I have a cpu heavy solution to the second. the player moves on a grid. the grid squares are .05 X .05. since the closest the lines can get to eachother is .05, I can fill the area with .05 X .05 planes or cubes. the result, however, is that you end up with THOUSANDS of planes. I’m not sure that most computers could handle that, but I haven’t tried yet. I would prefer something less cpu heavy.
what it looks like without ms paint
edited in paint to add orange and blue