Closed GoogleCodeExporter closed 9 years ago
For sensors there is no time of impact because there is never any impact.
Sensors allow
shapes to pass through each other.
Instead you should use ray casts to detect when fast moving objects cross
boundaries.
In the case of a world box, you could just check the body's coordinate.
Original comment by erinca...@gmail.com
on 28 Feb 2010 at 7:27
I understand that sensors have no impact, but as it could be easily computed why
don't use it to resolve tunneling? (of course skipping the processing of the
"impact").
While "world box" problem is easy to solve, the general case is not. You
suggest to
use ray casts to detect if a fast moving object cross a (moving) sensor, but
doing so
means that I must manually inspect all N*M cases (N moving objects, M sensors),
manually resolving the tunneling, and thus skipping at all Box2D
(callback/filtering
systems, islands, and so on). Is not better to make TOI resolve tunneling also
for
sensors (as it could just do it)? Or maybe I don't have understood your reply.
Original comment by daniele.benegiamo@gmail.com
on 1 Mar 2010 at 10:42
Original issue reported on code.google.com by
daniele.benegiamo@gmail.com
on 15 Feb 2010 at 12:50