日本語のREADMEはこちらです: README.ja.md
Oimo.js is a lightweight 3D physics engine for JavaScript. It's a full JavaScript conversion of OimoPhysics originally created by Saharan for ActionScript 3.0.
- Basic test
- Compound test (chair)
- Compound test (capsule)
- Ragdoll test
- Collision test
- Moving test
- Terrain test
- Car test
- Walker test
- Worker test
- Lightweight and fast 3D physics engine
- Supports various collision shapes: sphere, box, cylinder, plane, particle
- Provides joint types: distance, ball-and-socket, hinge, wheel, slider, prismatic
- Enables multi-threading with Web Workers
- Includes built-in performance monitoring
Oimo.js requires a modern browser supporting JavaScript ES6.
Use as ES modules:
import * as OIMO from "https://code4fukui.github.io/Oimo.js/build/oimo.module.js";or
import * as OIMO from "https://code4fukui.github.io/Oimo.js/src/Oimo.js";Alternatively, download the minified library and include it in your HTML:
<script src="js/oimo.min.js"></script>You can also install the npm package:
npm install oimo
See the documentation for more details on usage.
MIT License — see LICENSE.