Is there a simple JavaScript physics engine available that can handle some simple 3D scenarios.
I'm aware of the Box2D implementation but I don't think that can do what I need. In essence I want to simulate the behavior of a ball as it interacts with a hole (like putting in golf). Where, depending on the speed, the ball can spin around the hole etc.
Physics engines come in two main forms: high-precision and real-time. High precision engines are used to simulate difficult or critical physics calculations; real-time engines are the types you see in video games.
PhysicsJS - A modular, extendable, and easy-to-use physics engine for javascript.
ammo. js is a direct port of the Bullet physics engine to JavaScript, using Emscripten. The source code is translated directly to JavaScript, without human rewriting, so functionality should be identical to the original Bullet.
There is a list of javascript physics libraries here: https://github.com/bebraw/jswiki/wiki/Physics-libraries
https://gamedev.stackexchange.com/questions/5334/do-any-open-source-javascript-3d-physics-engines-exist - this is another post on a similar topic but in stack exchange.
There are also some libraries to be found here: https://github.com/bebraw/jswiki/wiki/Game-Engines
I don't know if any are 'directly' relevant, but perhaps there's something useful and you can update if you find anything?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With