Skip to content

Ricku34/ODE.js

Repository files navigation

Image of ODE

ODE.js

ODE is an high performance library for simulating rigid body dynamics, it has advanced joint types and integrated collision detection with friction. ODE is useful for simulating vehicles, objects in virtual reality environments and virtual creatures.

Russell Smith is the original author of ODE.

New in V1.1.0 :

Since V1.1.0, ODE is compiled to WebAssembly through emscripten, this adds an asynchronous step, the API add a promise wich is resolved when ODE engine is ready!

    <script src="node_module/odejs/lib/libode.js"></script>
    ODE.readyPromise.then(function() {

            var world = new ODE.World();
            [...]
    });

Installation :

npm install odejs

Online Examples :

Babylon.js :

Three.js :

Documentation :

A start of API documentation generated by jsdoc can be found HERE. The original manual can be found at http://ode.org/ode-latest-userguide.html

How to build lib :

prerequisite :

step to build :

 > git clone https://github.com/Ricku34/ODE.js.git
 > cd ODE.js
 > npm install
 > npm run build

build tasks :

build tasks used Grunt and Makefile, npm run build launch the default grunt task

grunt tasks list :

  • default : rebuild libode.js from scratch.
  • clear : remove libode.js, c/c++ objet files and temp files.
  • doc : generate documentation.
  • js : rebuild libode.js from javasript sources (not recompile ODE C/C++ files).

About

JavaScript port of physics engine Open Dynamics Engine (ODE) and OPCODE (Optimized Collision Detection)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published