Package limn.render3d

Class Picker

java.lang.Object
limn.render3d.Picker

public final class Picker extends Object
CPU ray picking. For each Pickable: a world-space AABB broadphase, then the ray is transformed into mesh-local space and tested triangle-by-triangle (Möller–Trumbore). Returns the nearest hit, or null for a miss. Good for up to thousands of objects; a GPU id-buffer path can come later for scale.
  • Method Details

    • pick

      public static PickResult pick(Ray worldRay, List<Pickable> pickables)
      The nearest hit along the ray, or a miss when nothing intersects.