Cloudhunter/OpenCCSensors — pull request #92 by CoolisTheName007 (2013-01-20 01:19:15+00:00)
Title: Sonic Sensor

Finally, the sonic sensor!!!
Basically:
* The sonic sensor is an emulation of real-life sonic sensors in MC.
* In general,by emitting an 'sonic pulse' from the center of the sensor, it can scan in any direction described by a 3D vector, returning to the Lua-side the serialization of a Scan object (see Scan subclass).
This serialization can contain info as whether the obstacle hit is an entity, a liquid, a solid, a unloaded chunk, a non-existent chunk, or something else.

I thought it made more sense to place some utilities I use in a new folder than filling up the SonicInterface.java with stuff that might turn out useful for other people. Plus, it isn't straightforward for me how to put it all side by side in one file, but I can learn if necessary!

Hope you like it:)

Ps: here's something I recently did with the sensor, a camera like thing:
![](http://i.imgur.com/NtZav.png)