Rangefinder
ComponentsWeapon
Rangefinder
Description
For detecting the distance from the object itself to the opposite side
Usage
Empty objects within the mounted weapon so that the empty objects are facing forward
Comment
Variables
Name | Type | Description |
---|---|---|
rangeText | Text | Text objects showing distances (pure numbers, will overwrite original text) |
noReadingText | string | Text displayed when the maximum detection distance is exceeded |
maxDistance | float | Maximum detection distance |
samplesPerSecond | float | Detection rate per second (how many times per second) |