Query and Raycast Example

sdac - Custom level - Feb 11, 2014 from Windows
Revision #2, updated Jan 1, 1970
Play Edit 5 players liked this.

Left lua object does a world query to find nearby objects, and then draws a line to it.

Right lua object does a raycast to the left, it ill light the connected debugger 50% when it detects any object, and 100% if the detected object is a robot. Note that raycasts end at the very first object, like the laser.

Please note that there's a bug with the layer checking of both raycast and query so you'll have to wait until tomorrow (1.4.0.1) for the layer arguments to work. Do not pass them at all for now.

Downloads: 281 - Level ID: 2676