Roblox UtilitiesDevlHub Roblox Documentation

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#

NameValueSummary
Floor0Detects floor surfaces below the part using the modern detection algorithm; the default value of ControllerPartSensor.SensorMode.
Ladder1Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm.
ClassicFloor2Detects floor surfaces below the part using the legacy raycast-based algorithm.
ClassicLadder3Detects ladder surfaces adjacent to the part using the legacy ladder detection algorithm.