schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.
http://schteppe.github.com/cannon.js
MIT License
4.69k stars 712 forks source link

box can start rotating when colliding another box for no reason #478

Open DiuDono opened 2 years ago

DiuDono commented 2 years ago

I have 1 red box moving between 2 massless white boxes along the z axis. I have not rotated any of the boxes, and I ensured the red box doesn't hit an edge of a white box. The red box starts rotating on collide, and also collides 4 times with each white box on a single bounce. The collisions are supposed to have restitution = 1 (elastic) and friction = 0