Part of StarfallEx namespace
๐ External
find.inCone(pos, dir, distance, radius, filter)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Finds entities in a cone
Parameters
| Name | Type | Description |
|---|---|---|
pos | Vector | The cone vertex position |
dir | Vector | The direction to project the cone |
distance | number | The length to project the cone |
radius | number | The cosine of angle of the cone. 1 makes a 0ยฐ cone, 0.707 makes approximately 90ยฐ, 0 makes 180ยฐ, and so on. |
filter? | function | Optional function to filter results |
Returns
| Type | Description |
|---|---|
table | An array of found entities |
Examples
No examples available.
Used In
No usages found in the codebase.