Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support physics libraries #788

Open
emadurandal opened this issue Jun 2, 2021 · 6 comments
Open

Support physics libraries #788

emadurandal opened this issue Jun 2, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@emadurandal
Copy link
Collaborator

emadurandal commented Jun 2, 2021

  1. Evaluate libraries & choose one
  • Oimo.js
  • Ammo.js
  1. Implement

┆Issue is synchronized with this Wrike Item

@emadurandal
Copy link
Collaborator Author

Ammo.js & Three.js Demo by lo-th san.
http://lo-th.github.io/Ammo.lab/#car_terrain

@cx20
Copy link

cx20 commented Jun 2, 2021

As far as I know, the following physics libraries are currently available in JavaScript.

Library License URL description
ammo.js zlib https://github.com/kripken/ammo.js/ This is a JavaScript port of the Bullet physics engine(C++).
Oimo.js MIT https://github.com/lo-th/Oimo.js/ This is a JavaScript port of a physics library made with ActionScript.
OimoPhysics MIT https://github.com/saharan/OimoPhysics A physics library made in Haxe, exported to JavaScript.
cannon.js MIT https://github.com/schteppe/cannon.js A physics library with a high affinity for Three.js. Unfortunately, it is no longer maintained.
cannon-es MIT https://github.com/pmndrs/cannon-es This is a forked version of cannon.js. It includes bug fixes and new features.
Energy.js CC BY-NC 4.0 https://github.com/samuelgirardin/Energy.js A JavaScript port for the C++ physics library Open Dynamic Engine.

@cx20
Copy link

cx20 commented Jun 3, 2021

It seems that lo-th has started testing the next version of ammo.js and OimoPhysics, the successor to Oimo.js.
http://lo-th.github.io/root/ammo_next/
http://lo-th.github.io/root/oimo_next/

@emadurandal
Copy link
Collaborator Author

@cx20 Thank you. We'll make a plan.

@emadurandal emadurandal self-assigned this Jun 8, 2021
@emadurandal emadurandal added the enhancement New feature or request label Jun 8, 2021
@emadurandal emadurandal added this to the More Later milestone Jun 8, 2021
@emadurandal
Copy link
Collaborator Author

@cx20 Currently, Rhodonite uses Oimo.js (https://github.com/lo-th/Oimo.js/). But Oimo.js has not been updated for a long time recently. It may switch to OimoPhysics in the future.

@cx20
Copy link

cx20 commented Jun 15, 2024

When updating to the latest version of Rhdonite, the physics calculation sample stopped working, so I fixed it so that it works now.
Below is a sample using oimo.js with Rhdonite.

https://cx20.github.io/webgl-physics-examples/examples/rhodonite/oimo/minimum/
https://cx20.github.io/webgl-physics-examples/examples/rhodonite/oimo/domino/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants