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

Unified Diff: lib/src/dynamics/joints/mouse_joint.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/gear_joint.dart ('k') | lib/src/dynamics/joints/prismatic_joint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dynamics/joints/mouse_joint.dart
diff --git a/lib/src/dynamics/joints/mouse_joint.dart b/lib/src/dynamics/joints/mouse_joint.dart
index 2955b0a4f90d4e7d668d6f1cfe64fa12262cd4bb..bace374bb548ea4cc27332145da16f4832e9ff3d 100644
--- a/lib/src/dynamics/joints/mouse_joint.dart
+++ b/lib/src/dynamics/joints/mouse_joint.dart
@@ -137,8 +137,7 @@ class MouseJoint extends Joint {
Vector2 temp = pool.popVec2();
// Compute the effective mass matrix.
- Rot.mulToOutUnsafe(
- qB, temp.setFrom(_localAnchorB).sub(_localCenterB), _rB);
+ Rot.mulToOutUnsafe(qB, temp.setFrom(_localAnchorB).sub(_localCenterB), _rB);
// K = [(1/m1 + 1/m2) * eye(2) - skew(r1) * invI1 * skew(r1) - skew(r2) * invI2 * skew(r2)]
// = [1/m1+1/m2 0 ] + invI1 * [r1.y*r1.y -r1.x*r1.y] + invI2 * [r1.y*r1.y -r1.x*r1.y]
« no previous file with comments | « lib/src/dynamics/joints/gear_joint.dart ('k') | lib/src/dynamics/joints/prismatic_joint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698