Hi,
I’m trying to use box2d’s collision detection in my game for testing when two objects are within firing range of each other. It works great when objects are moving, just setting the bodies with the correct radius value and making sure that they are sensors and box2d throws a collision when they are in range, but when one or both of the objects aren’t moving there are no collision detection events.
This makes sense from the point of view of handling collision responses, sometimes when two objects are touching (i.e. in range) there won’t be any need for a collision event, but I’m thinking there might be a way to get box2D to generate an event based on range alone, I mean the physics engine must perform a check for being in range before deciding on whether or not to generate a collision event, right? Is there another event I could use?
[import]uid: 89028 topic_id: 15858 reply_id: 315858[/import]