Summary
Raycasts and stops at the first hit.
Syntax
public static HitResult Raycast(this Simulation simulation, RaySegment raySegment, CollisionFilterGroups collisionFilterGroups, CollisionFilterGroupFlags collisionFilterGroupFlags)
Parameters
Name |
Type |
Description |
simulation |
Simulation |
Physics simulation. |
raySegment |
RaySegment |
Ray. |
collisionFilterGroups |
CollisionFilterGroups |
The collision group of this shape sweep |
collisionFilterGroupFlags |
CollisionFilterGroupFlags |
The collision group that this shape sweep can collide with |
Return Value
Type |
Description |
HitResult |
The hit results. |