Code Monkey home page Code Monkey logo

ode.js's Introduction

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).

ode.js's People

Contributors

ricku34 avatar dependabot[bot] avatar

Stargazers

Yiheng Wang avatar Ashish Aapan avatar jumpjack avatar  avatar José A. Ramos avatar  avatar  avatar Sea Grapes avatar  avatar John_R_Kkk avatar Nate Sticco avatar Dmitry Kolesnikovich avatar  avatar 轩 avatar Wenbo Wang avatar telee6789 avatar Linghao Su avatar Dawid Górny avatar 龙天 avatar SHUKE avatar JMA avatar Yi Shen avatar  avatar Wendell avatar fro avatar Javier Belbruno avatar lo-th avatar Anton Trushkov avatar  avatar pedoc avatar asdass avatar Keith Johnston avatar  avatar Ashxn avatar Yueming Liu avatar  avatar Rahul Bhadani avatar Fabio Dias Rollo avatar Guillaume Bouchet avatar Ivo Flipse avatar  avatar

Watchers

James Cloos avatar Fabio Dias Rollo avatar  avatar  avatar

Forkers

yuemingl wanskool

ode.js's Issues

ODE.js license?

You have two license files for the original C-based ODE, but not for ODE.js. What is the ODE.js license? Are they the same?

Thanks, this will be really helpful.

Constant Collision?

Hello, sorry if this question has been answered, but does this library support CCD or constant collision detection to prevent tunneling? Thanks!

reset world and perf

Hi cool project

i have some problem with nearCallback
seems this take many resource maybe you can include in emscripte

also on world reset
world.destroy()
contact.destroy()
space.destroy()

something stay in memory and i can't relauch simulation without error
g1.getBody is not a function

Future of ODE.js

@Ricku34 would you be interested in updating this library?

If so, what are your thoughts on the following:

  • Updating to the latest version of ODE (0.16)
  • Having this work in both a NodeJS and Browser environment (may already be possible?)
  • Publishing to NPM

Also, were there any issues that blocked you from continuing with this port? And are there any known issues with the library in it's current form?

I look forward to hearing back from you.

Missing dGeomSetData dGeomGetData and more

Hi!
I think the object Set/GetData functions i missing.

dBodySetData/dBodyGetData
dGeomSetData/dGeomGetData
etc.

If you can add the emscripten build files and build instructions then I would be glad to help out adding missing functions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.