Ray-cast the world for all fixtures in the path of the ray. Your callback
controls whether you get the closest point, any point, or n-points.
The ray-cast ignores shapes that contain the starting point.
Inside the callback:
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
Namespace: Internal.tainicom.Aether.Physics2D.DynamicsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic void RayCast(
RayCastReportFixtureDelegate callback,
Vector2 point1,
Vector2 point2
)
Parameters
- callback RayCastReportFixtureDelegate
- A user implemented callback class.
- point1 Vector2
- The ray starting point.
- point2 Vector2
- The ray ending point.
See Also