behdad / box2d

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

when change a body to static, b2Sweep should be reset? #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, only velocities are reset.
In my game, after set a body static, it will still be moved a bit in the next 
step in SolveTOI by bA.Advance(minAlpha).

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

GoogleCodeExporter commented 9 years ago
http://box2d.org/forum/viewtopic.php?f=3&t=6971

Original comment by Tapir....@gmail.com on 17 May 2011 at 2:29

GoogleCodeExporter commented 9 years ago
Rev 194.

When a body is set to static its sweep is reset and proxies are synchronized.

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