Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
layerCluster.nodes.forEach(function(circle) {
let centerGlobal = planck.Vec2(circle.x, circle.y);
let centerLocal = centerGlobal.sub(bodyCentroid);
let fixture = body.createFixture(planck.Circle(centerLocal, circle.r + circle.planckPadding), circleFD);
fixture.setUserData(circle);
});