Closed theajack closed 2 years ago
Hey! Bodies will be set to sleeping if they don't move for some time (this is a an optimization). This should fix it:
setInterval(() => {
ball.setPosition(new Vec2(0, 4));
ball.setAwake(true);
}, 4000)
Thanks
When setPosition is called, the ball is suspended in mid-air
https://piqnt.com/planck.js/Pinball