Class PickData

java.lang.Object
com.ardor3d.intersection.PickData
Direct Known Subclasses:
PrimitivePickData

public class PickData extends Object
PickData contains information about a picking operation (or Ray/Volume intersection). This data contains the mesh the ray hit, the triangles it hit, and the ray itself.
  • Field Details

  • Constructor Details

    • PickData

      public PickData(Ray3 ray, Pickable target, boolean calcPoints)
      instantiates a new PickData object. Note: subclasses may want to make calc points false to prevent this extra work.
      Parameters:
      ray - the ray
      target - the target
      calcPoints - true if the intersection points must be computed now
  • Method Details

    • getTarget

      public Pickable getTarget()
      Returns:
      the pickable hit by the ray.
    • getRay

      public Ray3 getRay()
      Returns:
      the ray used in the test.
    • getIntersectionRecord

      public IntersectionRecord getIntersectionRecord()
      Returns:
      the intersection record generated for this pick. Will be null if calcPoints was false.