Contact normal - sensor question

Hi,

WHat happens to the contact manifold when a sensor completely overlaps another object.

I want to attach a large sensor to the front of a top down car and when the sensor touches another dynamic body, use the contact normal to somehow provide an input into the steering to avoid the obstacle.

My concern is a sensor may completely overlap another body.

Regards

i
Sensors do not generate contact manifolds. If they did, you would still get a normal vector regardless of the degree of overlap. Box2D's collision algorithm handle the case when one shape contains another.
That answers that one then, thanks!

So I guess I can just detect a collision with a sensor and calculate the vector that connects them to apply an opposing steering force.

Original thread: https://box2d.org/forum/viewtopic.php?t=5636