SensorMode
Specifies whether a ControllerPartSensor targets floor or ladder geometry, and which detection algorithm to use.
Items 4
| History | Name | Value | Description | |
|---|---|---|---|---|
| 565 | Floor | 0 | Detects floor surfaces below the part using the modern detection algorithm; the default value of ControllerPartSensor.SensorMode. | |
| 565 | Ladder | 1 | Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm. | |
| 720 | ClassicFloor | 2 | Detects floor surfaces below the part using the legacy raycast-based algorithm. | |
| 720 | ClassicLadder | 3 | Detects ladder surfaces adjacent to the part using the legacy ladder detection algorithm. |
Description
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.
History 7
- 720 Change Index of ClassicLadder from 2 to 3
- 720 Change Value of ClassicLadder from 2 to 3
- 720 Add ClassicFloor
- 717 Add ClassicLadder
- 565 Add Ladder
- 565 Add Floor
- 565 Add SensorMode