org.odejava.test.simple
Class TriMesh

java.lang.Object
  extended by org.odejava.test.simple.TriMesh

public class TriMesh
extends Object

Creates simple Odejava simulation. Consists of a static plane (ground), box, four spheres and trimesh object. TriMesh object is like a pyramid, but it is upside down and it's bottom is open. Box and spheres are placed in the air above the ground and trimesh object, as the simulation goes ahead they fall inside the pyramid. Coordinate is selected in such way that Z is up. Note, this example uses high level API. Extend it with low level API as needed. see http://odejava.dev.java.net

Author:
Jani Laakso E-mail: jani.laakso@itmill.com

Constructor Summary
TriMesh()
          Create world and objects.
 
Method Summary
 void cleanup()
          Clean up native ODE objects.
 Geom getGeom(String name)
           
 List<Geom> getGeoms()
          Get geoms list.
 void resetSimulation()
          Reset simulation.
 void step()
          Step simulation ahead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriMesh

public TriMesh()
Create world and objects. Note, this example uses high level API. Extend it with low level API as needed.

Method Detail

step

public void step()
Step simulation ahead.


cleanup

public void cleanup()
Clean up native ODE objects. Call this before ending your Java program.


getGeoms

public List<Geom> getGeoms()
Get geoms list.

Returns:
Geoms list

getGeom

public Geom getGeom(String name)

resetSimulation

public void resetSimulation()
Reset simulation. Not used in this class.