ray | @param ray Начальная точка и направление луча. |
results | The buffer to store the hits into. |
maxDistance | The max distance the rayhit is allowed to be from the start of the ray. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a ray. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
int
The amount of hits stored into the results
buffer.
Cast a ray through the scene and store the hits into the buffer.
Like Physics.RaycastAll, but generates no garbage.
origin | @param ray Начальная точка и направление луча. |
results | The buffer to store the hits into. |
direction | Направление луча. |
maxDistance | The max distance the rayhit is allowed to be from the start of the ray. |
layermask | A Layer mask that is used to selectively ignore colliders when casting a ray. |
queryTriggerInteraction | Specifies whether this query should hit Triggers. |
int
The amount of hits stored into the results
buffer.
Cast a ray through the scene and store the hits into the buffer.