Skip to content

Raycast

selimanac edited this page Oct 7, 2024 · 6 revisions

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(group_id, start_x, start_y, end_x, end_y, mask_bits)

daabbcc.raycast_sort(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)

Clone this wiki locally