ControllerManager
Manages simulated motion control for its assigned ControllerManager.RootPart .
Memory category | Instances |
---|
Member index 9
Removed member index 2
History | Member | |
---|---|---|
574 | GetControllers(): Objects |
Description
The ControllerManager instance manages simulated motion control for its assigned ControllerManager.RootPart. It can be used to build a physics-based character controller.
History 42
- 612 Add UpDirection
- 597 Change Tags of ControllerManager from [NotBrowsable] to []
- 580 Add RootPart
- 574 Remove GetControllers
- 574 Change ThreadSafety of MovingDirection from LocalSafe to ReadSafe
- 574 Change ThreadSafety of GroundSensor from LocalSafe to ReadSafe
- 574 Change ThreadSafety of FacingDirection from LocalSafe to ReadSafe
- 574 Change ThreadSafety of ClimbSensor from LocalSafe to ReadSafe
- 574 Change ThreadSafety of BaseTurnSpeed from LocalSafe to ReadSafe
- 574 Change ThreadSafety of BaseMoveSpeed from LocalSafe to ReadSafe
- 574 Change ThreadSafety of ActiveController from LocalSafe to ReadSafe
- 572 Change Tags of GetControllers from [] to [Deprecated]
- 572 Change ThreadSafety of MovingDirection from ReadSafe to LocalSafe
- 572 Change ThreadSafety of GroundSensor from ReadSafe to LocalSafe
- 572 Change ThreadSafety of FacingDirection from ReadSafe to LocalSafe
- 572 Change ThreadSafety of ClimbSensor from ReadSafe to LocalSafe
- 572 Change ThreadSafety of BaseTurnSpeed from ReadSafe to LocalSafe
- 572 Change ThreadSafety of BaseMoveSpeed from ReadSafe to LocalSafe
- 572 Change ThreadSafety of ActiveController from ReadSafe to LocalSafe
- 568 Change ThreadSafety of GetControllers from Safe to Unsafe
- 568 Change CanLoad of ActiveController from false to true
- 568 Change Tags of ActiveController from [ReadOnly, NotReplicated] to []
- 565 Add GroundSensor
- 565 Add ClimbSensor
- 553 Change Default of MovingDirection from to Vector3(0, 0, 0)
- 553 Change Default of FacingDirection from to Vector3(0, 0, 1)
- 553 Change Default of BaseTurnSpeed from to 8
- 553 Change Default of BaseMoveSpeed from to 16
- 553 Change Default of ActiveController from to
- 551 Remove
- 546 Change Tags of from [] to [Hidden, NotReplicated]
- 546 Change CanSave of from true to false
- 546 Change CanLoad of from true to false
- 543 Add MovingDirection
- 543 Add FacingDirection
- 543 Add BaseTurnSpeed
- 542 Change Tags of ControllerManager from [] to [NotBrowsable]
- 539 Add GetControllers
- 539 Add
- 539 Add BaseMoveSpeed
- 539 Add ActiveController
- 539 Add ControllerManager
Members 9
ActiveController
Type | Default | |
---|---|---|
ControllerBase |
The ControllerBase that is set to be activated on the character. It does not guarantee that the specified ControllerBase is, in fact, active. If the ControllerBase cannot be activated for whatever reason, such as being outside of the character's WorldRoot or no Part being found to use as the floor for a GroundController, it will remain set and the ControllerManager will attempt to activate it in the next frame.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 6
- 574 Change ThreadSafety of ActiveController from LocalSafe to ReadSafe
- 572 Change ThreadSafety of ActiveController from ReadSafe to LocalSafe
- 568 Change CanLoad of ActiveController from false to true
- 568 Change Tags of ActiveController from [ReadOnly, NotReplicated] to []
- 553 Change Default of ActiveController from to
- 539 Add ActiveController
BaseMoveSpeed
Type | Default | |
---|---|---|
float | 16 |
The base linear movement speed used by all controllers. Controllers individually customize speed by setting the ControllerBase.MoveSpeedFactor property.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 4
- 574 Change ThreadSafety of BaseMoveSpeed from LocalSafe to ReadSafe
- 572 Change ThreadSafety of BaseMoveSpeed from ReadSafe to LocalSafe
- 553 Change Default of BaseMoveSpeed from to 16
- 539 Add BaseMoveSpeed
BaseTurnSpeed
Type | Default | |
---|---|---|
float | 8 |
The base angular turning speed used by all controllers to align the character to face the desired direction.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 4
- 574 Change ThreadSafety of BaseTurnSpeed from LocalSafe to ReadSafe
- 572 Change ThreadSafety of BaseTurnSpeed from ReadSafe to LocalSafe
- 553 Change Default of BaseTurnSpeed from to 8
- 543 Add BaseTurnSpeed
ClimbSensor
Type | Default | |
---|---|---|
ControllerSensor |
A reference to the sensor data used while a ClimbController is active. A ClimbController will use the ControllerPartSensor.HitPart, ControllerPartSensor.HitFrame, and ControllerPartSensor.HitNormal for climb movement computations. Typically a ControllerPartSensor set to SensorMode.Ladder is used here. Otherwise, you can override the sensor's outputs to direct what sensor data you want the ClimbController to use.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 3
- 574 Change ThreadSafety of ClimbSensor from LocalSafe to ReadSafe
- 572 Change ThreadSafety of ClimbSensor from ReadSafe to LocalSafe
- 565 Add ClimbSensor
FacingDirection
Type | Default | |
---|---|---|
Vector3 | 0, 0, 1 |
The unit vector describing the desired direction to face. Aligns the LookVector of the ControllerManager.RootPart to this. Any Vector3 assigned will be automatically unitized.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 4
- 574 Change ThreadSafety of FacingDirection from LocalSafe to ReadSafe
- 572 Change ThreadSafety of FacingDirection from ReadSafe to LocalSafe
- 553 Change Default of FacingDirection from to Vector3(0, 0, 1)
- 543 Add FacingDirection
GroundSensor
Type | Default | |
---|---|---|
ControllerSensor |
A reference to the sensor data used while a GroundController is active. A GroundController will use the ControllerPartSensor.HitPart, ControllerPartSensor.HitFrame, and ControllerPartSensor.HitNormal for ground movement computations. Typically a ControllerPartSensor set to SensorMode.Floor is used here. Otherwise, you can override the sensor's outputs to direct what sensor data you want the GroundController to use.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
History 3
- 574 Change ThreadSafety of GroundSensor from LocalSafe to ReadSafe
- 572 Change ThreadSafety of GroundSensor from ReadSafe to LocalSafe
- 565 Add GroundSensor
MovingDirection
Type | Default | |
---|---|---|
Vector3 | 0, 0, 0 |
The vector describing the desired direction to move in, with a magnitude between 0 and 1. This is multiplied by BaseMoveSpeed to determine a final target move velocity. The RootPart will attempt to move in this direction based on the rules defined by the ActiveController.
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 4
- 574 Change ThreadSafety of MovingDirection from LocalSafe to ReadSafe
- 572 Change ThreadSafety of MovingDirection from ReadSafe to LocalSafe
- 553 Change Default of MovingDirection from to Vector3(0, 0, 0)
- 543 Add MovingDirection
RootPart
Type | Default | |
---|---|---|
BasePart |
The BasePart where the controller's forces and torques are applied. With a typical Humanoid-based character, the Humanoid.RootPart is assigned as the ControllerManager.RootPart.
Thread safety | ReadSafe |
---|---|
Category | Behavior |
Loaded/Saved | true |
UpDirection
Type | Default | |
---|---|---|
Vector3 | 0, 1, 0 |
Thread safety | ReadSafe |
---|---|
Category | Input |
Loaded/Saved | true |
History 1
- 612 Add UpDirection
Removed members 2
GetControllers
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Objects |
Thread safety | Unsafe |
---|
History 4
- 574 Remove GetControllers
- 572 Change Tags of GetControllers from [] to [Deprecated]
- 568 Change ThreadSafety of GetControllers from Safe to Unsafe
- 539 Add GetControllers