Hello, I’m using CannonJs for collision detection between a sphere and a wall but when the velocity of the sphere is greater then 240 the sphere goes through the wall without bouncing.
sphereBody.velocity.set(-250, 0, 0); // Up to -240 it bounces
Why it happens?
I also tried to change the velocity of the sphere manually as soon as I detect a collision (following this answer) but I don’t understand how to “reflect” the velocity’s vector in CannonJs.
I attach a demo zip file to recreate the problem:
cannon-walls-collision.zip (593.2 KB)