Hey guys,
I'm just messing around with Box2D again, and I made a kind of Asteroidsy game, except the goal is to "wrangle" as many asteroids into a net that you launch out (it has two balls on the end of a chain which, when touching any part of the chain, will create a joint, circling it off).
Now, the net part is all fine, but I can't figure out for the life of me how I would be able to find what bodies are inside the net. This sounds like a tough issue; my first attempts were things like creating a triangle mesh out of the center points of each chain piece, but this didn't help much because of the different angles that the chain could end up being (ending up with triangles outside of the chain, etc).
Anyone done anything similar or have any suggestions?
-P
I'm just messing around with Box2D again, and I made a kind of Asteroidsy game, except the goal is to "wrangle" as many asteroids into a net that you launch out (it has two balls on the end of a chain which, when touching any part of the chain, will create a joint, circling it off).
Now, the net part is all fine, but I can't figure out for the life of me how I would be able to find what bodies are inside the net. This sounds like a tough issue; my first attempts were things like creating a triangle mesh out of the center points of each chain piece, but this didn't help much because of the different angles that the chain could end up being (ending up with triangles outside of the chain, etc).
Anyone done anything similar or have any suggestions?
-P