RayCastReportFixtureDelegate Delegate |
Called for each fixture found in the query. You control how the ray cast
proceeds by returning a float:
return -1: ignore this fixture and continue
return 0: terminate the ray cast
return fraction: clip the ray to this point
return 1: don't clip the ray and continue
@param fixture the fixture hit by the ray
@param point the point of initial intersection
@param normal the normal vector at the point of intersection
@return 0 to terminate, fraction to clip the ray for closest hit, 1 to continue
Namespace: Internal.tainicom.Aether.Physics2D.DynamicsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic delegate float RayCastReportFixtureDelegate(
Fixture fixture,
Vector2 point,
Vector2 normal,
float fraction
)
Parameters
- fixture Fixture
-
- point Vector2
-
- normal Vector2
-
- fraction Single
-
Return Value
Single
See Also