Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: lib/src/dynamics/world.dart

Issue 1138063003: pkg/box2d: 0.2.0 release (Closed) Base URL: https://github.com/google/dbox2d.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/dynamics/joints/wheel_joint.dart ('k') | lib/src/particle/particle_system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dynamics/world.dart
diff --git a/lib/src/dynamics/world.dart b/lib/src/dynamics/world.dart
index 685ca66f685ce447bf947220da7f00dbb7e4cf97..b5e1271e3db1a830ac866e6aa9857c2ef26c8ddb 100644
--- a/lib/src/dynamics/world.dart
+++ b/lib/src/dynamics/world.dart
@@ -187,7 +187,8 @@ class World {
_addType(_pool.getPolyContactStack(), ShapeType.POLYGON, ShapeType.POLYGON);
_addType(
_pool.getEdgeCircleContactStack(), ShapeType.EDGE, ShapeType.CIRCLE);
- _addType(_pool.getEdgePolyContactStack(), ShapeType.EDGE, ShapeType.POLYGON);
+ _addType(
+ _pool.getEdgePolyContactStack(), ShapeType.EDGE, ShapeType.POLYGON);
_addType(
_pool.getChainCircleContactStack(), ShapeType.CHAIN, ShapeType.CIRCLE);
_addType(
@@ -1121,9 +1122,7 @@ class World {
b._sweep.alpha0 = 0.0;
}
- for (Contact c = _contactManager.contactList;
- c != null;
- c = c._next) {
+ for (Contact c = _contactManager.contactList; c != null; c = c._next) {
// Invalidate TOI
c._flags &= ~(Contact.TOI_FLAG | Contact.ISLAND_FLAG);
c._toiCount = 0;
@@ -1137,9 +1136,7 @@ class World {
Contact minContact = null;
double minAlpha = 1.0;
- for (Contact c = _contactManager.contactList;
- c != null;
- c = c._next) {
+ for (Contact c = _contactManager.contactList; c != null; c = c._next) {
// Is this contact disabled?
if (c.isEnabled() == false) {
continue;
« no previous file with comments | « lib/src/dynamics/joints/wheel_joint.dart ('k') | lib/src/particle/particle_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698