Bandidos
|
Public Member Functions | |
PhysicsWorld () | |
void | update (float dt) |
World | getWorld () |
void | render (RenderComponents rcs) |
void | clean () |
void | onReceiveEvent (Event event) |
This class handles the Physics of the 'world'. Right now it will only handle Collision. It will create the bodies needed for the entities for collision to work.
com.mygdx.game.engine.resources.PhysicsWorld.PhysicsWorld | ( | ) |
void com.mygdx.game.engine.resources.PhysicsWorld.clean | ( | ) |
Cleans this class. This method clears everything that is no longer needed for this class when called.
World com.mygdx.game.engine.resources.PhysicsWorld.getWorld | ( | ) |
Returns the world of the PhysicsWorld
void com.mygdx.game.engine.resources.PhysicsWorld.onReceiveEvent | ( | Event | event | ) |
This will be triggered when an event has been fired of type which this implementing class was listening to.
event | which has one of the event types which is listened to. |
Implements com.mygdx.game.engine.events.IEventReceiver.
void com.mygdx.game.engine.resources.PhysicsWorld.render | ( | RenderComponents | rcs | ) |
void com.mygdx.game.engine.resources.PhysicsWorld.update | ( | float | dt | ) |