Physics: Added a small tolerance when updating body positions in reaction to a collis...
commitcc59dd2e03b1db95a0de7e012305fd7a7b24cc21
authorHanno Braun <hanno@habraun.net>
Thu, 5 Mar 2009 10:53:42 +0000 (5 11:53 +0100)
committerHanno Braun <hanno@habraun.net>
Thu, 5 Mar 2009 10:53:42 +0000 (5 11:53 +0100)
tree74f5a3e1f5a01d89b09983367e89e4959c572cf2
parente9914eaaa0454f80e6f4966c6acd51b59fa51076
Physics: Added a small tolerance when updating body positions in reaction to a collision. This fixed a bug that caused bodies to intersect after a collision, due to numerical inaccuracies, which would just glue them together and make them immovable.
src/net/habraun/kong/physics/World.scala
test/net/habraun/kong/physics/WorldTest.scala