Skip to content

llCastRay

function ll.CastRay(Start: vector, End: vector, Options: {any}): {any}

Casts a ray into the physics world from 'start' to 'end' and returns data according to details in Options.

Reports collision data for intersections with objects.

Return value: [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, UUID_2, {link_number_2}, hit_position_2, {hit_normal_2}, ... , status_code] where {} indicates optional data.

Parameters
Start (vector)
End (vector)
Options ({any})

Add example usage here showing SLua/Luau syntax with ll.CastRay().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.