Class AllHitCallback

java.lang.Object
com.deco2800.game.physics.raycast.AllHitCallback
All Implemented Interfaces:
RayCastCallback

public class AllHitCallback
extends java.lang.Object
implements RayCastCallback
Cast a ray against all colliders that match the layer mask. All hits will be stored, with an empty array if no hits occurred.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    short layerMask  
  • Constructor Summary

    Constructors 
    Constructor Description
    AllHitCallback()  
  • Method Summary

    Modifier and Type Method Description
    RaycastHit[] getHitsAndClear()  
    float reportRayFixture​(Fixture fixture, Vector2 point, Vector2 normal, float fraction)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait