Class PhysicsThreadRunnable
java.lang.Object
fr.phylisiumstudio.logic.runnable.PhysicsThreadRunnable
- All Implemented Interfaces:
Runnable
Runnable task for physics simulation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWorld
(WorldPhysics worldPhysics) Add a world to the physics taskint
void
removeWorld
(WorldPhysics worldPhysics) Remove a world from the physics taskvoid
run()
-
Constructor Details
-
PhysicsThreadRunnable
public PhysicsThreadRunnable()Create a new physics task
-
-
Method Details
-
run
public void run() -
addWorld
Add a world to the physics task- Parameters:
worldPhysics
- The world to add
-
removeWorld
Remove a world from the physics task- Parameters:
worldPhysics
- The world to remove
-
getWorldsSize
public int getWorldsSize() -
getWorlds
-
getWorld
-