diff --git a/src/body/Body.js b/src/body/Body.js index 9fe07d8..f2e378d 100644 --- a/src/body/Body.js +++ b/src/body/Body.js @@ -505,6 +505,16 @@ var Axes = require('../geometry/Axes'); Bounds.update(part.bounds, part.vertices, body.velocity); } + // handle circles + if (body.circleRadius) { + if (scaleX === scaleY) { + body.circleRadius *= scaleX; + } else { + // body is no longer a circle + body.circleRadius = null; + } + } + if (!body.isStatic) { var total = _totalProperties(body); body.area = total.area;