pmndrs / p2-es

JavaScript 2D physics library
https://p2-es.pmnd.rs
Other
123 stars 11 forks source link

Inaccurate rotational inertia (concise scoped edition) #138

Open aMyTimed opened 10 months ago

aMyTimed commented 10 months ago

https://github.com/pmndrs/p2-es/assets/52638772/5356918a-1230-408b-8bc1-69262b085326

(this is a different video from last time and has way better framerate)

you can see halfway through the video my spring on my mouse is able to easily rotate a giant box with very very high mass (you should be able to tell the mass is high given i cant drag it around, only rotate it)

it should always be harder to spin an object that has a higher mass. in other engines like box2D, this problem is not present

isaac-mason commented 10 months ago

Thanks for creating a "concise scoped edition" 😆 and for the video

I'm busy travelling for a bit, but will try to look into this when I'm back (in a couple of weeks).

If you have any suggestions for fixes / are keen to contribute in the meantime, go for it! Happy to help however I can 🙂