|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.test.simple.HighLevelApiExample
public class HighLevelApiExample
Creates simple Odejava simulation. Consists of a static plane (ground), box and sphere object. Box and sphere are placed in the air above the ground, as the simulation goes ahead they fall to ground and collide to each other. 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
| Constructor Summary | |
|---|---|
HighLevelApiExample()
Create world and objects. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Clean up native ODE objects. |
List<Geom> |
getGeoms()
Get geoms. |
static void |
main(String[] args)
Standalone test application that prints simulation results to console. |
void |
resetSimulation()
Reset simulation. |
void |
simulate(int steps)
Simulate Odejava environment and objects by stepping the world ahead. |
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 |
|---|
public HighLevelApiExample()
| Method Detail |
|---|
public static void main(String[] args)
public void simulate(int steps)
steps - to simulatepublic void step()
public void cleanup()
public List<Geom> getGeoms()
public void resetSimulation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||