Function JobRaycastAll.JobRaycastAll
JobRaycastAll
(NativeArray<RaycastCommand> commands, NativeArray<RaycastHit> results, PhysicsScene physicsScene, int maxHits, Allocator allocator, JobDependencyTracker dependencyTracker, float minStep=…)
Jobified version of Physics.RaycastNonAlloc.
Public
JobRaycastAll (
NativeArray<RaycastCommand> | commands | Array of commands to perform. |
NativeArray<RaycastHit> | results | Array to store results in. |
PhysicsScene | physicsScene | PhysicsScene to use for the raycasts. Only used in Unity 2022.2 or later. |
int | maxHits | Max hits count per command. |
Allocator | allocator | Allocator to use for the results array. |
dependencyTracker | Tracker to use for dependencies. |
|
float | minStep=0.0001f | Minimal distance each Raycast should progress. |
Jobified version of Physics.RaycastNonAlloc.