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 TypeMethodDescriptionvoidaddWorld(WorldPhysics worldPhysics) Add a world to the physics taskintvoidremoveWorld(WorldPhysics worldPhysics) Remove a world from the physics taskvoidrun()
-
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
-