Lua Distance Calculator w/ Modifiable sensitivity. OUTDATED
Cralant - Custom level - Dec 22, 2013 from AndroidThis version is not correct. I have not used Pythagoras theorem to work out the total distance. Take a look at Jammer's version for the correct algorithm as well as a better formula for working out the abs.
Lua distance calculator including a sensitivity modifier.
Tracks the distance of the wheel from the wooden box.
Tracks distance in 3 ways, total distance, x axis distance and y axis distance. These come out of outputs 1, 2 and 3 respectively.
Controls are:
Left slider = Sensitivity modifier (0-100)
Right button = Kill Switch (Any value above 0 will stop the script and output a 1 signal to output 0).
I have attempted to label the code and comment as clearly as possible to try and help people. Unfortunately its not easy to navigate around the coding screen.
The script currently tracks a wheel and thruster that are connected. This was to just produce random results for testing feel free to build a more controllable creation to be tracked.
Downloads: 109 - Level ID: 1574