Summary
Raycasts and stops at the first hit.
- Namespace
- StrideToolkit
.Physics - Containing Type
- SimulationExtensions
Syntax
public static HitResult Raycast(this Simulation simulation, RaySegment raySegment)
Parameters
Name | Type | Description |
---|---|---|
simulation | Simulation | Physics simulation. |
raySegment | RaySegment | Ray. |
Return Value
Type | Description |
---|---|
HitResult | The hit results. |