|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.test.car.CarTerrain
public class CarTerrain
Creates Open Dynamics Engine world. Plug this demonstration class into any 3d rendered (Xith3d, Openmind, jME, Java3D).
| Constructor Summary | |
|---|---|
CarTerrain()
Create world and objects. |
|
| Method Summary | |
|---|---|
void |
accelerate(float force)
Accelerate (or deaccelerate). |
void |
applyForceToCar(float z)
Test ODE's addForce method to car chassis. |
void |
cleanup()
Clean up native ODE objects. |
void |
createTriMesh(String name,
float[] vertex,
int[] index)
|
List<Body> |
getBodies()
|
Body |
getBody(String name)
|
int |
getBoxCount()
|
Geom |
getGeom(String name)
|
List<Geom> |
getGeoms()
|
org.openmali.vecmath2.Vector3f |
getGravity()
|
int |
getSphereCount()
|
boolean |
isHandbrake()
|
void |
rotateObjects(float x,
float y,
float z)
Test ODE's addForce method to all objects. |
void |
setGravity(org.openmali.vecmath2.Vector3f gravity)
|
void |
setHandbrake(boolean handbrake)
|
void |
setSimulation()
Set an sample simulation. |
void |
steer(float steer)
Steer car's front wheels. |
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 CarTerrain()
| Method Detail |
|---|
public void createTriMesh(String name,
float[] vertex,
int[] index)
public void setSimulation()
public void step()
public org.openmali.vecmath2.Vector3f getGravity()
public void setGravity(org.openmali.vecmath2.Vector3f gravity)
gravity - The gravity to set.public void accelerate(float force)
force - public void steer(float steer)
steer -
public void rotateObjects(float x,
float y,
float z)
x - y - z - public void applyForceToCar(float z)
z - public void cleanup()
public boolean isHandbrake()
public void setHandbrake(boolean handbrake)
handbrake - The handbrake to set.public List<Body> getBodies()
public Body getBody(String name)
public List<Geom> getGeoms()
public Geom getGeom(String name)
public int getBoxCount()
public int getSphereCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||