Class AllHitCallback
java.lang.Object
com.deco2800.game.physics.raycast.AllHitCallback
- All Implemented Interfaces:
 com.badlogic.gdx.physics.box2d.RayCastCallback
public class AllHitCallback
extends Object
implements com.badlogic.gdx.physics.box2d.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 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfloatreportRayFixture(com.badlogic.gdx.physics.box2d.Fixture fixture, com.badlogic.gdx.math.Vector2 point, com.badlogic.gdx.math.Vector2 normal, float fraction)  
- 
Field Details
- 
layerMask
public short layerMask 
 - 
 - 
Constructor Details
- 
AllHitCallback
public AllHitCallback() 
 - 
 - 
Method Details
- 
getHitsAndClear
 - 
reportRayFixture
public float reportRayFixture(com.badlogic.gdx.physics.box2d.Fixture fixture, com.badlogic.gdx.math.Vector2 point, com.badlogic.gdx.math.Vector2 normal, float fraction) - Specified by:
 reportRayFixturein interfacecom.badlogic.gdx.physics.box2d.RayCastCallback
 
 -