Reference API Roblox

Engine API

Website

Related

Reference API Roblox

SensorMode

Specifies whether a ControllerPartSensor targets floor or ladder geometry, and which detection algorithm to use.

Items 4

HistoryNameValueDescription
565Floor0

Detects floor surfaces below the part using the modern detection algorithm; the default value of ControllerPartSensor.SensorMode.

565Ladder1

Detects ladder surfaces adjacent to the part using the modern piercing-based detection algorithm.

720ClassicFloor2

Detects floor surfaces below the part using the legacy raycast-based algorithm.

720ClassicLadder3

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

Settings