-
-
Notifications
You must be signed in to change notification settings - Fork 4
Raycast
selimanac edited this page Oct 7, 2024
·
6 revisions
Parameters
-
group_id
(uint8) - Group ID -
start_x
(float) - x -
start_y
(float) - x -
end_x
(float) - -
end_y
(float) - -
mask_bits
(uint64)[optional] - Default is all
Returns
-
result
(table) - Table of possible overlapping AABB IDs. -
count
(uint32) - Result count
Example
local result, count = daabbcc.raycast(group_id, start_x, start_y, end_x, end_y, mask_bits)
Parameters
-
group_id
(uint8) - Group ID -
start_x
(float) - x -
start_y
(float) - x -
end_x
(float) - -
end_y
(float) - -
mask_bits
(uint64)[optional] - Default is all
Returns
-
result
(table) - Table of possible overlapping AABB IDs. -
count
(uint32) - Result count
Example
local result, count = daabbcc.raycast_sort(group_id, start_x, start_y, end_x, end_y, mask_bits)
If you find my Defold Extensions useful for your projects, please consider supporting it.
I'd love to hear about your projects! Please share your released projects that use my native extensions. It would be very motivating for me.