public interface RayCastCallback
| Modifier and Type | Method and Description |
|---|---|
float |
reportRayFixture(Fixture fixture,
com.badlogic.gdx.math.Vector2 point,
com.badlogic.gdx.math.Vector2 normal,
float fraction)
Called for each fixture found in the query.
|
float reportRayFixture(Fixture fixture, com.badlogic.gdx.math.Vector2 point, com.badlogic.gdx.math.Vector2 normal, float fraction)
Vector2 instances passed to the callback will be reused for future calls so make a copy of them!fixture - the fixture hit by the raypoint - the point of initial intersectionnormal - the normal vector at the point of intersection