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 TypeMethodDescriptionvoidaddRigidBody(RigidBody body) Adds a rigid body to the simulation.voidremoveRigidBody(RigidBody body) Removes a rigid body from the simulation.voidsetGravity(double gravityX, double gravityY, double gravityZ) Sets the gravity vector for the world.voidstepSimulation(Quantity<Time> timeStep) Steps the simulation forward in time.voidstepSimulation(Quantity<Time> timeStep, int maxSubSteps, Quantity<Time> fixedTimeStep) Steps the simulation with fixed time steps and max substeps.
-
Method Details
-
addRigidBody
Adds a rigid body to the simulation.- Parameters:
body- the body to add
-
removeRigidBody
Removes a rigid body from the simulation.- Parameters:
body- the body to remove
-
stepSimulation
-
stepSimulation
Steps the simulation with fixed time steps and max substeps.- Parameters:
timeStep- the amount of time to simulatemaxSubSteps- maximum number of internal substepsfixedTimeStep- 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 XgravityY- gravity in YgravityZ- gravity in Z
-