RaycastAPI.aabb

Raycasts based on a start position, an end position, and an array of Axis Aligned Bounding Boxes defined by the player.
AABBs are encoded as a table with indicies 1 and 2 being a Vector3.
`{vec(0,
0,0),vec(1,0.5,1)}` is a valid AABB, with `{ {vec(0,0,0),vec(1,0.5,1)}, {vec(0,0.5,0.5),vec(1,1,1)} }` being a valid AABB array.
This function returns the AABB table that was hit,
the exact position hit as a Vector3, the side of the AABB hit as a string or nil if inside an AABB, and the index of the AABB that was hit in the array
overload 1:
raycast:aabb(start, end, aabbs)
Method Property Fluent Description Representation
start accepts a Vector3
end accepts a Vector3
aabbs accepts a table
Return Value a Varargs
overload 2:
raycast:aabb(startX, startY, startZ, end, aabbs)
Method Property Fluent Description Representation
startX accepts a Number
startY accepts a Number
startZ accepts a Number
end accepts a Vector3
aabbs accepts a table
Return Value a Varargs
overload 3:
raycast:aabb(start, endX, endY, endZ, aabbs)
Method Property Fluent Description Representation
start accepts a Vector3
endX accepts a Number
endY accepts a Number
endZ accepts a Number
aabbs accepts a table
Return Value a Varargs
overload 4:
raycast:aabb(startX, startY, startZ, endX, endY, endZ, aabbs)
Method Property Fluent Description Representation
startX accepts a Number
startY accepts a Number
startZ accepts a Number
endX accepts a Number
endY accepts a Number
endZ accepts a Number
aabbs accepts a table
Return Value a Varargs
a a