What's new? | Help | Directory | Sign in
Google
jslibs
standalone Javascript development environment with general purpose native libraries.
  
  
  
  
    
Search
for
Updated Mar 07, 2008 by soubok
Labels: doc
jsode  
jsode module

- source - main -

jsode module

jsode is a module that manages support to ODE. ODE is an open source, high performance library for simulating rigid body dynamics. It is fully featured, stable, mature and platform independent with an easy to use C/C++ API. 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. It is currently used in many computer games, 3D authoring tools and simulation tools.
note:
In the following API description, vec3 type is a js 3 dimentions array like [1, 3,5, 0]


jsode::World class

Functions

Properties

  • real ERP
  • dWorldGetERP
  • real CFM
  • dWorldGetCFM

  • real contactSurfaceLayer
  • dWorldGetContactSurfaceLayer


jsode::Body class

Functions

  • bool IsConnectedTo( body )
  • dAreConnected

Properties

  • vec3 angularVel
  • dBodySetAngularVel
  • vec3 force
  • dBodySetForce
  • vec3 torque
  • dBodySetTorque

  • mass
  • Is the mass object (jsode::Mass) of the body.

note:

This class exports a NI_READ_MATRIX44 interface to read the current body's position.

jsode::Mass class

Functions

  • SetZero()
  • dBodyGetMass, dMassSetZero, dBodySetMass
  • SetBoxTotal( mass, vec3 )
  • dBodyGetMass, dMassSetBoxTotal, dBodySetMass

Properties


jsode::SurfaceParameters class

Functions

note:
by default, mu is set to Infinity.

Properties

  • real bounce
  • real bounceVel
  • real softERP
  • real softCFM
  • real motion1
  • real motion2
  • real slip1
  • real slip2

note:
Use <undefined> as value to reset the property.

jsode::Space class

Functions


jsode::Joint class

Functions

Properties


jsode::JointBall class jsode::Joint

Functions

Properties


jsode::JointHinge class jsode::Joint

Functions

Properties

  • real angleRate
  • Get the current rotation speed.


jsode::JointSlider class jsode::Joint

Functions

Properties


jsode::JointFixed class jsode::Joint

Functions


jsode::JointPlane class jsode::Joint

Functions


jsode::Geom class

Functions

Properties

Callback functions

note:

This class exports a NI_READ_MATRIX44 interface to read the current body's position.

jsode::GeomSphere class jsode::Geom

Functions

Properties


jsode::GeomBox class jsode::Geom

Functions

Properties


jsode::GeomPlane class jsode::Geom

Functions


jsode::GeomCapsule class jsode::Geom

Functions

Properties


jsode::GeomRay class jsode::Geom

Functions

Properties


- source - top - main -


Sign in to add a comment