behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

Need recheck contacts validity at the end of world.Step? #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Somtimes, it is apparently a shape has escaped from all contactings with other 
shapes at the end of one step,
but, the EndContact event will be triggered in the next step instead of this 
current step.

Now, there is a FindContacts calling at the end of world.Step.
A ValidateContacts calling is also needed?

http://box2d.org/forum/viewtopic.php?f=3&t=6956

Original issue reported on code.google.com by Tapir....@gmail.com on 17 May 2011 at 2:30

GoogleCodeExporter commented 9 years ago
This is lazy evaluation and is done for performance. Such artifacts exist in 
most game engines. For example, most games have input latency of a frame or two.

Original comment by erinca...@gmail.com on 26 Jun 2011 at 11:07