Skip to content

Commit

Permalink
fixed incorrect bounds issue when passing angle in Body.create
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jul 9, 2014
1 parent 69b1d05 commit 810bd26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/body/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ var Body = {};
Sleeping.set(body, body.isSleeping);
Vertices.rotate(body.vertices, body.angle, body.position);
Axes.rotate(body.axes, body.angle);
Bounds.update(body.bounds, body.vertices, body.velocity);

// allow options to override the automatically calculated properties
body.axes = options.axes || body.axes;
Expand Down

0 comments on commit 810bd26

Please sign in to comment.