public interface RayCastCallback
World.rayCast(RayCastCallback, Vector2, Vector2)| Modifier and Type | Method and Description |
|---|---|
float |
reportRayFixture(Fixture fixture,
Vector2 point,
Vector2 normal,
float fraction)
Called for each fixture found in the query.
|
float reportRayFixture(Fixture fixture, Vector2 point, 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