From 810bd2695a0989d21a9c8e217439ac3ecc4a3e0e Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 9 Jul 2014 18:08:19 +0100 Subject: [PATCH] fixed incorrect bounds issue when passing angle in Body.create --- src/body/Body.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/body/Body.js b/src/body/Body.js index 0917ba93..fd74b8e7 100644 --- a/src/body/Body.js +++ b/src/body/Body.js @@ -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;