From The Powder Toy
Jump to: navigation, search
LDTC.png Linear Detector
Section Sensors
Spawn temperature 22°C
Heat Conductivity 0%
Relative weight 100
Gravity 0
Acid dissolve rate 0%
Flammability 0
State Solid
Source code

LDTC, Linear Detector, originally called RAYT (Ray Tracer) detects particles in 8 directions (up, down, left, right, and four 45 degree diagonals) and sparks a conductor in the opposite direction. The particle it detects is set by its ctype. If the ctype is not set, it can detect any particles. Note that the particle must be in line with the conductor and LDTC to be detected (hence the name Linear Detector).

The tmp value of LDTC determines its range (how far away it can detect particles). Note that the range is not limited to 25, unlike DTEC.

The life of LDTC determines how many spaces it will skip before scanning. For instance, if its life is 10 and its tmp is 15, it will skip 10 spaces, scan for 15 spaces, and then stop.

Important note: LDTC will stop scanning once it has found a particle, whether or not that particle matches its ctype. Unless its life is set to >1, placing conductors all around it will impede its function. This can be changed by changing the modes as shown below.

LDTC can detect the ctype of BRAY and FILT and dump it onto a line of FILT, just like DTEC.

The tmp2 of LDTC sets different modes:
tmp2=0: Default
tmp2=1: Invert mode (any particle except its ctype)
tmp2=2: Will ignore energy particles ( NEUT, ELEC, etc.)
tmp2=4: Will not set FILT ctype/color.
tmp2=8: Will keep searching even after it has found a particle.

It can be used to make electronics much smaller. Not only can it detect and change FILT without having to use or deal with the problems of DRAY, but it also has a farther and more controlled range than DTEC. Its usable life property allows you to specifically control where to look for particles. You can also make them look for certain types of particles by layering them.

Example Saves

Usage examples
Language: [[::Element:LDTC|English]]