Part of StarfallEx namespace
๐ External
trace.aimVector(viewAngles, viewFOV, x, y, screenWidth, screenHeight)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Calculates the aim vector from a 2D screen position. This is essentially a generic version of input.screenToVector, where you can define the view angles and screen size manually.
Parameters
| Name | Type | Description |
|---|---|---|
viewAngles | Angle | View angles |
viewFOV | number | View field of view |
x | number | X position on the screen |
y | number | Y position on the screen |
screenWidth | number | Screen width |
screenHeight | number | Screen height |
Returns
| Type | Description |
|---|---|
Vector | The aim vector |
Examples
No examples available.
Used In
No usages found in the codebase.