Skip to content

Class · inherits Instance

ControllerBase

Official docs ↗

Abstract base class for the controllers that a ControllerManager uses to move its character.

About ControllerBase

ControllerBase is the abstract base class for the controllers that a ControllerManager uses to move its assigned character: GroundController, AirController, SwimController, and ClimbController. Each controller is parented to a ControllerManager and supplies the movement and balance behavior for one locomotion state, and the manager activates one controller at a time. This class isn't created directly; instead create one of its derived controllers. It defines the balance and movement properties shared by all of them.

Properties 3

  • Active: booleanReadOnlyNotReplicatedWhether this controller is currently the active controller of its ControllerManager.

    Indicates whether this controller is the one currently driving its parent ControllerManager. The manager activates the controller referenced by its ControllerManager.ActiveController property and sets that controller's Active to true; when the controller is no longer the active one, it is deactivated and Active returns to false. This property is read-only and defaults to false.

  • BalanceRigidityEnabled: booleanWhether the controller holds its balance orientation rigidly instead of with a spring response.

    Controls how the controller keeps its character oriented while active. When false (the default), the balance constraint is compliant and corrects orientation with a spring-damper response tuned by the controller's balance properties, such as its balance torque and balance speed. When true, the constraint instead holds the target orientation rigidly, and those balance-tuning properties no longer apply. Defaults to false.

  • MoveSpeedFactor: floatThe value multiplied by the ControllerManager.BaseMoveSpeed.

    The value multiplied by the ControllerManager.BaseMoveSpeed to determine the final desired linear velocity while this controller is active.

ControllerBase 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.