Class NonLimiter

java.lang.Object
dev.engine_room.flywheel.impl.visual.NonLimiter
All Implemented Interfaces:
DistanceUpdateLimiter, DistanceUpdateLimiterImpl

public class NonLimiter extends Object implements DistanceUpdateLimiterImpl
  • Constructor Details

    • NonLimiter

      public NonLimiter()
  • Method Details

    • tick

      public void tick()
      Description copied from interface: DistanceUpdateLimiterImpl
      Call this before every update.
      Specified by:
      tick in interface DistanceUpdateLimiterImpl
    • shouldUpdate

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