Class PhysicsSystem

java.lang.Object
technology.sola.ecs.EcsSystem
technology.sola.engine.physics.system.PhysicsSystem

@NullMarked public class PhysicsSystem extends technology.sola.ecs.EcsSystem
PhysicsSystem is an EcsSystem that handles updating Entity with a TransformComponent and DynamicBodyComponent. It will update the velocity based on its applied force unless it is kinematic. Then it will update the translation based on the velocity scaled to deltaTime.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The order of this system.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    update(technology.sola.ecs.World world, float deltaTime)
     

    Methods inherited from class technology.sola.ecs.EcsSystem

    isActive, setActive

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PhysicsSystem

      public PhysicsSystem()
  • Method Details

    • getOrder

      public int getOrder()
      Overrides:
      getOrder in class technology.sola.ecs.EcsSystem
    • update

      public void update(technology.sola.ecs.World world, float deltaTime)
      Specified by:
      update in class technology.sola.ecs.EcsSystem