lo-th / Oimo.js

Lightweight 3d physics engine for javascript
http://lo-th.github.io/Oimo.js
MIT License
3.05k stars 301 forks source link

Wrong Ineria of Cylinder about Y axis #100

Open maheshkurmi opened 3 years ago

maheshkurmi commented 3 years ago

MOI of cylinder about Y axis is wrongly written as var inertiaY = 0.5 * rsq; while it should be var inertiaY = 0.5 * rsq*mass; The cylinder is not rolling due to this bug in basic test.