Class · inherits ControllerSensor
ControllerPartSensor
A SensorBase that outputs data about another BasePart based on
Humanoid floor and ladder detection logic.
About ControllerPartSensor
A SensorBase that outputs data about another BasePart based on
Humanoid floor and ladder detection logic. It is primarily used for
sending data to a character controller. Using a ControllerPartSensor
allows you to detect BaseParts in the same manner as the
Humanoid uses for detecting floors and ladders.
Properties 8
HitFrame
: CFrameThe position in world space where the sensor hit theControllerPartSensor.SensedPart.HitNormal
: Vector3The surface normal at the position where the sensor hit theControllerPartSensor.SensedPart.The surface normal at the position where the sensor hit the SensedPart.
LadderSearchHeight
: floatThe upper bound, in studs, of the vertical region the sensor searches for a ladder whenControllerPartSensor.SensorModeis set to a ladder mode.Top of the vertical extent the sensor scans for a climbable ladder, in studs relative to the sensor's parent
BasePart. Together withControllerPartSensor.LadderSearchOffset, it defines the height range: the region extends upward toLadderSearchHeightminusLadderSearchOffset.Defaults to
6; clamped to non-negative values.Only affects sensing when
ControllerPartSensor.SensorModeis a ladder mode such asSensorMode.Ladder. BecauseSensorModedefaults toSensorMode.Floor, this has no effect untilSensorModeis changed.LadderSearchOffset
: floatThe downward offset, in studs, that positions the vertical region the sensor searches for a ladder whenControllerPartSensor.SensorModeis set to a ladder mode.Downward offset, in studs relative to the parent
BasePart, that positions the vertical extent scanned for a climbable ladder. Behaves like a hip-height offset: increasing it lowers both the bottom and top of the searched region, and scales the rung-spacing tolerance used to decide whether a surface is climbable.Defaults to
5; clamped to non-negative values.Only affects sensing when
ControllerPartSensor.SensorModeis a ladder mode such asSensorMode.Ladder. BecauseSensorModedefaults toSensorMode.Floor, this has no effect untilSensorModeis changed.SearchDistance
: floatThe distance from the sensor's parentBasePartto use when sensing other parts.SensedMaterial
: MaterialThe surfaceMaterialof theControllerPartSensor.SensedPartthat the sensor is currently detecting.Surface
Materialof the part the sensor currently detects, matching the materialHumanoidfloor and ladder detection report for the same contact. Updated as an output alongsideControllerPartSensor.SensedPart,ControllerPartSensor.HitFrame, andControllerPartSensor.HitNormaleach time the sensor senses.Defaults to
Material.Air.SensedPart
: BasePartA reference to theBaseParthit by the sensor.SensorMode
: SensorModeDetermines what behavior thisSensorBaseuses when sensing other parts.Determines what behavior this
SensorBaseuses when sensing other parts.A setting of
SensorMode.Ladderperforms the same ladder detection logic used by aHumanoidto populate sensor output. It currently always senses along the forward vector of its parentBasePart.A setting of
SensorMode.Floorperforms the same floor detection logic used by aHumanoidto populate sensor output. It currently always senses along the negative up vector of the world.
ControllerPartSensor also has every member of ControllerSensor. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.