Class AnyHitCastShapeCollector

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

public class AnyHitCastShapeCollector extends CastShapeCollector
Collect one result from a narrow-phase shape-cast query. (native type: AnyHitCollisionCollector<CastShapeCollector>)
  • Constructor Details

    • AnyHitCastShapeCollector

      public AnyHitCastShapeCollector()
      Instantiate a default collector.
  • Method Details

    • getHit

      public ShapeCastResult getHit()
      Access the hit result.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • hadHit

      public boolean hadHit()
      Test whether the latest query resulted in a hit. The collector is unaffected.
      Returns:
      true if there was a hit, otherwise false