Logic Blocks

Overview
Logic Blocks are 1x1x2 sized blocks that simulate the action of Logical Gates. On one of the 1x2 sides, they have a display depicting 2 arrows and a symbol representing their contained Logic Gate. These blocks can be used to create automation and more advanced controls for vehicles.

How Logic Gates Work
There are 4 types of logic blocks in the game:
 * AND Gate
 * OR Gate
 * XOR Gate
 * Distance Sensor

Logic Gates work by providing an output based on the input it gets. These Logic Blocks can also be controlled directly with a Green (Positive) and a Red (Negative) keyboard inputs. Like other blocks, they also have fields for Timing and Delay.

AND Gate

 * The AND Gate only produces its output if all of the inputs are not zero.
 * Example: The AND Gate with two inputs receives a 1 and a 0. Because only one of the inputs is a 1, the AND Gate will not send its output. When it receives a 1 and a 1, it will send its output to whatever blocks that are marked to receive it.

OR Gate

 * The OR Gate only produces its output if any of it inputs are not zero.
 * Example: An OR Gate with 3 inputs receives a 1, 1, and 0. Because one of the inputs sends a 1, the OR Gate will send its output. If all of the inputs were 0, it would not send any output.

XOR Gate

 * The XOR Gate only produces output if exactly one input is not zero.
 * Example: An XOR Gate with 3 inputs receives a 1, 1, and 0. Unlike the OR Gate, the XOR Gate will not send its output because the more than a single input is a 1. If the inputs were 0, 0, and 1, the XOR Gate would send its output.
 * Note that this is not the case with real-world binary logic, as with actual binary logic, an XOR Gate will send its output if an odd number of inputs are active.

Distance Sensor

 * The Distance Sensor sends output when the distance between the sensing side of the block and another block or object come within a set distance.

Connecting Inputs and Outputs
Logic Blocks can be connected to any other block that can be controlled with input, including other Logic Blocks. To have a Logic Block control another block, Click the gear icon on the logic block and click the check box on the block that you would like it to control.

Tips

 * A single Logic Block can control multiple blocks at a time. If your vehicle has a lot of Mechanical Blocks to control at once, you can set them to be controlled by a single logic block instead to avoid needing to modify the controls and timing of each block.