Class CustomRayCastBodyCollector

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public abstract class CustomRayCastBodyCollector extends RayCastBodyCollector
A customizable RayCastBodyCollector.
  • Constructor Details

    • CustomRayCastBodyCollector

      public CustomRayCastBodyCollector()
      Instantiate a customizable collector.
  • Method Details

    • addHit

      public abstract void addHit(long resultVa)
      Callback invoked (by native code) each time a new ray-cast hit is detected.
      Parameters:
      resultVa - the virtual address of a BroadPhaseCastResult (not zero)