java.lang.Object
com.marginallyclever.ro3.physics.ODEPhysics

public class ODEPhysics extends Object
Manages the ODE4J physics world, space, and contact handling. There must be exactly one of these in the scene for physics to work.
  • 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

      public void addCollisionListener(CollisionListener listener)
    • removeCollisionListener

      public void removeCollisionListener(CollisionListener listener)
    • 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

      public void addActionListener(ActionListener a)
    • removeActionListener

      public void removeActionListener(ActionListener a)
    • deferredAction

      public void deferredAction(Node created)
      Deferred action to be taken after some nodes have been added to the scene.