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

Unified Diff: lib/src/collision/shapes/circle_shape.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/collision/broadphase/dynamic_tree.dart ('k') | lib/src/collision/shapes/polygon_shape.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/collision/shapes/circle_shape.dart
diff --git a/lib/src/collision/shapes/circle_shape.dart b/lib/src/collision/shapes/circle_shape.dart
index b3b0c4034f3f535d5a9faf5b0914835e698d8a21..c26b8b61b7362ce414a31ff77e0f323b2a7b66c3 100644
--- a/lib/src/collision/shapes/circle_shape.dart
+++ b/lib/src/collision/shapes/circle_shape.dart
@@ -175,7 +175,7 @@ class CircleShape extends Shape {
// inertia about the local origin
// massData.I = massData.mass * (0.5f * _radius * _radius + Vec2.dot(_p, _p));
- massData.I = massData.mass *
- (0.5 * radius * radius + (p.x * p.x + p.y * p.y));
+ massData.I =
+ massData.mass * (0.5 * radius * radius + (p.x * p.x + p.y * p.y));
}
}
« no previous file with comments | « lib/src/collision/broadphase/dynamic_tree.dart ('k') | lib/src/collision/shapes/polygon_shape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698