mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
fixed incorrect bounds issue when passing angle in Body.create
This commit is contained in:
parent
69b1d05efc
commit
810bd2695a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue