0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-26 13:49:01 -05:00

fixed incorrect bounds issue when passing angle in Body.create

This commit is contained in:
liabru 2014-07-09 18:08:19 +01:00
parent 69b1d05efc
commit 810bd2695a

View file

@ -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;