GetRayBoxCells also returns exit point.

This commit is contained in:
jussi
2024-07-20 15:29:50 +03:00
parent 03e9226b5f
commit c6eb85b367
5 changed files with 35 additions and 17 deletions

View File

@@ -5137,12 +5137,13 @@ function RL.GetRayCollisionTriangle( ray, p1, p2, p3 ) end
---@return any rayCollision
function RL.GetRayCollisionQuad( ray, p1, p2, p3, p4 ) end
---Get cell positions inside box that intersect with the ray. Returns empty table if ray misses the box
---- Success return Vector3{}
---Get cell positions inside box that intersect with the ray. Also returns ray exit point. Returns empty table if ray misses the box
---- Success return Vector3{}, RayCollision|nil
---@param ray any
---@param box any
---@param cellSize table
---@return any cells
---@return any cells
---@return any exitPoint
function RL.GetRayBoxCells( ray, box, cellSize ) end
-- Audio - Audio device management functions