SICK Laser Scanner

Author: (Jeff Craighead)

Thanks to StarManta for help with the Quaternion math.

Description
This script simulates the SICK LMS laser scanner by doing a bunch of raycasts around a single point. There are two functions each behaves slightly differently. See the comments in the code.

Usage
Attach this to an empty object, which becomes the scanner. You'll need some sort of query function to retrieve the range data for use in other parts of the game/simulation.