Class SweepResult

java.lang.Object
net.minestom.server.collision.SweepResult

public final class SweepResult extends Object
  • Field Details

    • NO_COLLISION

      public static SweepResult NO_COLLISION
  • Constructor Details

    • SweepResult

      public SweepResult(double res, double normalX, double normalY, double normalZ, Shape collidedShape, Point collidedPos)
      Store the result of a movement operation
      Parameters:
      res - Percentage of move completed
      normalX - -1 if intersected on left, 1 if intersected on right
      normalY - -1 if intersected on bottom, 1 if intersected on top
      normalZ - -1 if intersected on front, 1 if intersected on back