ObjectDetector
Casts a ray on the face with the hole on it, returning data of the object the ray hits.
Microcontroller function GetLastHitData
returns a table with data about the last object hit.
The "last hit" part updates with a frequency of 1 frame.
It is a craftable and spawnable non-flammable solid.
It cannot be resized.
At its default size (1x1x3) it has a durability of 8.
By default, its colour is #a3a2a5.
It requires 1 Laser
, 2 Silicon
, and 2 Wire
to be crafted.
Methods
GetLastHitData() → data
The data return is the hit data provided by the ObjectDetector
. It is an ObjectDetectorHitData
.
GetLastHitPart() → object
The object return is a reference to the most recently hit part. It is a PilotObject
.
Configurables
MaxDistance
The range that it can detect an object. Must be between 0 and 1000. It is a number
.
It ranges between 0 and 1000.
TriggerAtDistance
The range that it will trigger if it detect an object. It is a Vector2
.