Please guys, as time goes on, the sphere on the screen becomes lighter, or the force becomes greater, I don't know which one, I only want a jump. please help. Below is the code to make the shpere jump, but after some time, ie 10 seconds it, when the space bar is pushed down, the ball just flies away like a bullet. As you can see on the video, the more it stays on the screen, the lighter the sphere becomes or the greater the force.
if(event.code == 'Space'){
sphereBody.applyLocalImpulse ( new CANNON.Vec3(0,0.05,0),sphereBody.position )
}