Interface DistanceUpdateLimiter


@NonExtendable public interface DistanceUpdateLimiter
Interface for rate-limiting updates based on an object's distance from the camera.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldUpdate(double distanceSquared)
    Check to see if an object at the given position relative to the camera should be updated.
  • Method Details

    • shouldUpdate

      boolean shouldUpdate(double distanceSquared)
      Check to see if an object at the given position relative to the camera should be updated.
      Parameters:
      distanceSquared - The distance squared from the camera to the object.
      Returns:
      true if the object should be updated, false otherwise.