ControllerPartSensor
A SensorBase that outputs data about another BasePart based on Humanoid floor and ladder detection logic.
Memory category | Instances |
---|
Member index 5
Description
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.
History 7
- 597 Change Tags of ControllerPartSensor from [NotBrowsable] to []
- 565 Add SensorMode
- 565 Add SensedPart
- 565 Add SearchDistance
- 565 Add HitNormal
- 565 Add HitFrame
- 565 Add ControllerPartSensor
Members 5
HitFrame
Type | Default | |
---|---|---|
CFrame |
The position in world space where the sensor hit the ControllerPartSensor.SensedPart.
Thread safety | ReadSafe |
---|---|
Category | Output |
Loaded/Saved | true |
HitNormal
Type | Default | |
---|---|---|
Vector3 | 0, 0, 0 |
The surface normal at the position where the sensor hit the SensedPart.
Thread safety | ReadSafe |
---|---|
Category | Output |
Loaded/Saved | true |
SearchDistance
Type | Default | |
---|---|---|
float | 0 |
The distance from the sensor's parent BasePart to use when sensing other parts.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 1
- 565 Add SearchDistance
SensedPart
Type | Default | |
---|---|---|
BasePart |
A reference to the BasePart hit by the sensor.
Thread safety | ReadSafe |
---|---|
Category | Output |
Loaded/Saved | true |
History 1
- 565 Add SensedPart
SensorMode
Type | Default | |
---|---|---|
SensorMode | Floor |
Determines what behavior this SensorBase uses when sensing other parts.
A setting of SensorMode.Ladder performs the same ladder detection logic used by a Humanoid to populate sensor output. It currently always senses along the forward vector of its parent BasePart.
A setting of SensorMode.Floor performs the same floor detection logic used by a Humanoid to populate sensor output. It currently always senses along the negative up vector of the world.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 1
- 565 Add SensorMode