Run ode.js or ode.offline.js in unsandboxed mode and you should be able to use ODE
It'd be more useful if you combine it with like three.js extension, unless you really just want to simulate physics.
clip.mp4
In ODE you have to create them separately, but in this extension new world will create world and space at same time.
By default this extension uses +Y = up if you want to use different coordinate system, just change gravity.
Lengths in capsules/cylinders are based on Z axis.
Maybe these would be useful if you're using ODE for first time.
Body is for rigid body physics (like movemenet, gravity, and etc.), and geometry is for collision.
Which means if you want an object that never moves but has collision, you'd only make geometry. Or you can make the body kinematic.
- Create a geometry
- Create a body
- Associate the body you created with the geometry you created
- (optional) Move or rotate body (or geometry)
You MUST move or rotate after associating the body with geometry, otherwise object would not move to the position (or get rotated).
- Joint stuffs
- Force stuffs
- Damping stuffs (Maybe default values?)
- Ray (and raycast)
- Gravity function
- Mass stuffs
- Trimesh
- Heightfield
- Convex? (Not well documented, so maybe not...)