Interface PhysicsWorldBridge

All Known Implementing Classes:
GenesisWorld, JBulletWorld, NativeGenesisWorld, NativeODEWorld, ODEWorld

public interface PhysicsWorldBridge
Represents a physics simulation environment (Scene/World).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a rigid body to the simulation.
    void
    Removes a rigid body from the simulation.
    void
    setGravity(double gravityX, double gravityY, double gravityZ)
    Sets the gravity vector for the world.
    void
    Steps the simulation forward in time.
    void
    stepSimulation(Quantity<Time> timeStep, int maxSubSteps, Quantity<Time> fixedTimeStep)
    Steps the simulation with fixed time steps and max substeps.
  • Method Details

    • addRigidBody

      void addRigidBody(RigidBody body)
      Adds a rigid body to the simulation.
      Parameters:
      body - the body to add
    • removeRigidBody

      void removeRigidBody(RigidBody body)
      Removes a rigid body from the simulation.
      Parameters:
      body - the body to remove
    • stepSimulation

      void stepSimulation(Quantity<Time> timeStep)
      Steps the simulation forward in time.
      Parameters:
      timeStep - the amount of time to simulate
    • stepSimulation

      void stepSimulation(Quantity<Time> timeStep, int maxSubSteps, Quantity<Time> fixedTimeStep)
      Steps the simulation with fixed time steps and max substeps.
      Parameters:
      timeStep - the amount of time to simulate
      maxSubSteps - maximum number of internal substeps
      fixedTimeStep - the internal fixed time step
    • setGravity

      void setGravity(double gravityX, double gravityY, double gravityZ)
      Sets the gravity vector for the world.
      Parameters:
      gravityX - gravity in X
      gravityY - gravity in Y
      gravityZ - gravity in Z