Class · inherits Instance
ControllerBase
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 itsControllerManager.Indicates whether this controller is the one currently driving its parent
ControllerManager. The manager activates the controller referenced by itsControllerManager.ActiveControllerproperty and sets that controller'sActivetotrue; when the controller is no longer the active one, it is deactivated andActivereturns tofalse. This property is read-only and defaults tofalse.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. Whentrue, the constraint instead holds the target orientation rigidly, and those balance-tuning properties no longer apply. Defaults tofalse.MoveSpeedFactor
: floatThe value multiplied by theControllerManager.BaseMoveSpeed.The value multiplied by the
ControllerManager.BaseMoveSpeedto 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.