Class · inherits Instance
ControllerManager
Manages simulated motion control for its assigned
ControllerManager.RootPart .
About ControllerManager
The ControllerManager instance manages simulated motion control for
its assigned ControllerManager.RootPart. It can be used to build a
physics-based character controller.
Properties 9
ActiveController
: ControllerBaseTheControllerBasethat is set to be activated on the character.The
ControllerBasethat is set to be activated on the character. It does not guarantee that the specifiedControllerBaseis, in fact, active. If theControllerBasecannot be activated for whatever reason, such as being outside of the character'sWorldRootor noPartbeing found to use as the floor for aGroundController, it will remain set and theControllerManagerwill attempt to activate it in the next frame. This property can be set tonilto disable the physics controller.BaseMoveSpeed
: floatThe base linear movement speed used by all controllers.The base linear movement speed used by all controllers. Controllers individually customize speed by setting the
ControllerBase.MoveSpeedFactorproperty.BaseTurnSpeed
: floatThe base angular turning speed used by all controllers.The base angular turning speed used by all controllers to align the character to face the desired direction.
ClimbSensor
: ControllerSensorA reference to the sensor data used while aClimbControlleris active.A reference to the sensor data used while a
ClimbControlleris active. AClimbControllerwill use theControllerPartSensor.HitPart,ControllerPartSensor.HitFrame, andControllerPartSensor.HitNormalfor climb movement computations. Typically aControllerPartSensorset toSensorMode.Ladderis used here. Otherwise, you can override the sensor's outputs to direct what sensor data you want theClimbControllerto use.FacingDirection
: Vector3The unit vector describing the desired direction to face.The unit vector describing the desired direction to face. Aligns the
LookVectorof theControllerManager.RootPartto this. AnyVector3assigned will be automatically unitized.GroundSensor
: ControllerSensorA reference to the sensor data used while aGroundControlleris active.A reference to the sensor data used while a
GroundControlleris active. AGroundControllerwill use theControllerPartSensor.HitPart,ControllerPartSensor.HitFrame, andControllerPartSensor.HitNormalfor ground movement computations. Typically aControllerPartSensorset toSensorMode.Flooris used here. Otherwise, you can override the sensor's outputs to direct what sensor data you want theGroundControllerto use.MovingDirection
: Vector3The vector describing the desired direction to move in.The vector describing the desired direction to move in, with a magnitude between 0 and 1. This is multiplied by
BaseMoveSpeedto determine a final target move velocity. TheRootPartwill attempt to move in this direction based on the rules defined by theActiveController.RootPart
: BasePartTheBasePartwhere the controller's forces and torques are applied.The
BasePartwhere the controller's forces and torques are applied. With a typicalHumanoid-based character, theHumanoid.RootPartis assigned as theControllerManager.RootPart.UpDirection
: Vector3The unit vector describing the up direction for the character.The unit vector describing the up direction for the character, which defaults to
(0, 1, 0)(world up). Controllers under thisControllerManageruse it to keep theRootPartupright and to orient direction-dependent forces. For example, aGroundControllerapplies levitation and balancing forces along this direction, while anAirControllerandSwimControlleralign the character to it. AnyVector3assigned is automatically unitized; a zero,NaN, or infinite value is ignored.
ControllerManager also has every member of Instance. 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.