Class PhysicsService

java.lang.Object
com.deco2800.game.physics.PhysicsService

public class PhysicsService
extends java.lang.Object
Provides a global access point to the physics engine. This is necessary for physics-based entities to add or remove themselves from the world, as well as update their position each frame.
  • Constructor Summary

    Constructors 
    Constructor Description
    PhysicsService()  
    PhysicsService​(PhysicsEngine engine)  
  • Method Summary

    Modifier and Type Method Description
    PhysicsEngine getPhysics()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait