Enum
SensorMode
Specifies whether a ControllerPartSensor targets floor or ladder
geometry, and which detection algorithm to use.
The SensorMode enum controls both the type of geometry a
ControllerPartSensor targets (floor surfaces or ladder rungs) and the
detection algorithm it applies. SensorMode.Floor and
SensorMode.Ladder use the current sensing algorithms, while
SensorMode.ClassicFloor and SensorMode.ClassicLadder preserve
legacy behavior. The default value of ControllerPartSensor.SensorMode
is SensorMode.Floor.
Items 4#
| Name | Value | Summary |
|---|---|---|
Floor | 0 | Detects floor surfaces below the part using the modern detection
algorithm; the default value of ControllerPartSensor.SensorMode. |
Ladder | 1 | Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm. |
ClassicFloor | 2 | Detects floor surfaces below the part using the legacy raycast-based algorithm. |
ClassicLadder | 3 | Detects ladder surfaces adjacent to the part using the legacy ladder detection algorithm. |