Part of StarfallEx namespace
๐ External
trace.intersectRayWithOBB(rayStart, rayDelta, boxOrigin, boxAngles, boxMins, boxMaxs)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Does a ray box intersection returning the position hit, normal, and trace fraction, or nil if not hit.
Parameters
| Name | Type | Description |
|---|---|---|
rayStart | Vector | The origin of the ray |
rayDelta | Vector | The direction and length of the ray |
boxOrigin | Vector | The origin of the box |
boxAngles | Angle | The box's angles |
boxMins | Vector | The box min bounding vector |
boxMaxs | Vector | The box max bounding vector |
Returns
| Type | Description |
|---|---|
Vector | Hit position or nil if not hit |
Vector | Hit normal or nil if not hit |
number | Hit fraction or nil if not hit |
Examples
No examples available.
Used In
No usages found in the codebase.