Hello,
For the project I'm working on I could potentially get away with using sensors to determine when a given shape overlaps another one. However, for the sake of dynamism I'm really going for a broad-phase + narrow phase test. The idea is to start with an world.queryAABB() and within the callback, perform a Collision.testOverlap() to see if a given shape actually touches the shape of whatever fixture was found.
The result is not quite what I expected though. It seems that an overlap is only detected when the center-point of my 'sensor' shape is found to intersect with the fixture's shape. This simply isn't good enough. I need to know when any portion of one shape overlaps the other. Now, since I've been having some strange issues with shape.computeAABB(), it may be possible that I just flubbed something up.
So basically it boils down to this: Do I need to use sensors for such high-fidelity overlap info or am I simply doing something wrong here?
For the project I'm working on I could potentially get away with using sensors to determine when a given shape overlaps another one. However, for the sake of dynamism I'm really going for a broad-phase + narrow phase test. The idea is to start with an world.queryAABB() and within the callback, perform a Collision.testOverlap() to see if a given shape actually touches the shape of whatever fixture was found.
The result is not quite what I expected though. It seems that an overlap is only detected when the center-point of my 'sensor' shape is found to intersect with the fixture's shape. This simply isn't good enough. I need to know when any portion of one shape overlaps the other. Now, since I've been having some strange issues with shape.computeAABB(), it may be possible that I just flubbed something up.
So basically it boils down to this: Do I need to use sensors for such high-fidelity overlap info or am I simply doing something wrong here?