Class IntersectionResult

java.lang.Object
com.ardorcraft.collision.IntersectionResult

public class IntersectionResult extends Object
The result of a picking/tracing operation.
  • hit = was there a hit during this intersection test
  • oldPos = the last block grid position before a hit (which is the position in front of the hit block face)
  • pos = the block grid position that was hit
  • length = the length of the ray from the source to the hit position
  • Field Details

    • hit

      public boolean hit
    • oldPos

      public Pos oldPos
    • pos

      public Pos pos
    • length

      public double length
  • Constructor Details

    • IntersectionResult

      public IntersectionResult()
  • Method Details