Interface MovementController

All Known Implementing Classes:
PhysicsMovementComponent

public interface MovementController
A movement controller moves something to a given a target.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.badlogic.gdx.math.Vector2
     
    void
    setMoving(boolean movementEnabled)
     
    void
    setTarget(com.badlogic.gdx.math.Vector2 target)
     
  • Method Details

    • setMoving

      void setMoving(boolean movementEnabled)
      Parameters:
      movementEnabled - true to enable controller movement, false to disable.
    • getMoving

      boolean getMoving()
      Returns:
      True when movement enabled, false when disabled
    • getTarget

      com.badlogic.gdx.math.Vector2 getTarget()
      Returns:
      Target position in the world
    • setTarget

      void setTarget(com.badlogic.gdx.math.Vector2 target)
      Parameters:
      target - Target position in the world. Controller will steer toward the target.