java.lang.Object
com.marginallyclever.ro3.physics.ODEPhysics
Manages the ODE4J physics world, space, and contact handling. There must be exactly one of these in the scene
for physics to work.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addCollisionListener
(CollisionListener listener) void
deferredAction
(Node created) Deferred action to be taken after some nodes have been added to the scene.double
getCFM()
double
getERP()
double
org.ode4j.ode.DSpace
org.ode4j.ode.DWorld
boolean
isPaused()
void
void
removeCollisionListener
(CollisionListener listener) void
reset()
void
setCFM
(double WORLD_CFM) void
setERP
(double WORLD_ERP) void
setGravity
(double WORLD_GRAVITY) void
setPaused
(boolean state) void
update
(double dt)
-
Constructor Details
-
ODEPhysics
public ODEPhysics()
-
-
Method Details
-
reset
public void reset() -
getODEWorld
public org.ode4j.ode.DWorld getODEWorld() -
getODESpace
public org.ode4j.ode.DSpace getODESpace() -
update
public void update(double dt) -
addCollisionListener
-
removeCollisionListener
-
isPaused
public boolean isPaused() -
setPaused
public void setPaused(boolean state) -
getCFM
public double getCFM() -
setCFM
public void setCFM(double WORLD_CFM) -
getERP
public double getERP() -
setERP
public void setERP(double WORLD_ERP) -
getGravity
public double getGravity() -
setGravity
public void setGravity(double WORLD_GRAVITY) -
addActionListener
-
removeActionListener
-
deferredAction
Deferred action to be taken after some nodes have been added to the scene.
-