Class CustomCastRayCollector

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

public abstract class CustomCastRayCollector extends CastRayCollector
A customizable CastRayCollector.
  • Constructor Details

    • CustomCastRayCollector

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

    • addHit

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