Class · inherits ControllerBase
AirController
A physics character controller that governs movement while a character is airborne.
About AirController
An AirController is a ControllerBase that a
ControllerManager uses to drive a character's physics-based movement
while it is airborne, such as while jumping or falling. While it is the
manager's ActiveController, it
keeps the character balanced upright, turns it toward the
ControllerManager.FacingDirection, and moves it horizontally toward
the ControllerManager.MovingDirection. Uprighting is tuned with
BalanceMaxTorque and
BalanceSpeed, turning with
TurnMaxTorque and
TurnSpeedFactor, and horizontal movement
with MoveMaxForce. An AirController
only functions when parented to a ControllerManager.
Properties 7
BalanceMaxTorque
: floatThe maximum torque the character can use to remain balanced upright.The maximum torque the character can use to remain balanced upright. When misaligned, this amount of torque is applied to reach the
BalanceSpeedand realign the character. A higher torque means more force is required to cause the character to tilt. A lower torque means it's easer for the character to flip in the air. This property is hidden and has no effect whenControllerBase.BalanceRigidityEnabledis true.BalanceSpeed
: floatThe maximum angular speed used to align the character upright.The maximum angular speed used to align the character upright. A lower value means it takes longer for the character to recover to the upright position when misaligned. A higher value results in a quicker recovery.
MaintainAngularMomentum
: booleanDetermines whether angular momentum is preserved when input has stopped.Determines whether angular momentum is preserved when input has stopped. If false, the character will apply
TurningMaxTorqueto bring the angular velocity toward 0 when there is no input.MaintainLinearMomentum
: booleanDetermines whether linear momentum is preserved when input has stopped.Determines whether linear momentum is preserved when input has stopped. If false, the character will apply
MoveMaxForceto bring the linear velocity towards 0 when there is no input.MoveMaxForce
: floatThe maximum force that can be applied on theControllerManager.RootPartfor moving in theControllerManager.MovingDirection.The maximum force that can be applied on the
ControllerManager.RootPartfor moving in theControllerManager.MovingDirection. This affects how quickly different target linear velocities are reached and how quick the linear acceleration is ifMaintainLinearMomentumis off.TurnMaxTorque
: floatThe maximum torque that can be applied on theControllerManager.RootPartfor turning towards theControllerManager.FacingDirection.The maximum torque that can be applied on the
ControllerManager.RootPartfor turning towards theControllerManager.FacingDirection. This effects how quickly different target angular velocities are reached and how quick angular deceleration is ifMaintainAngularMomentumis off.TurnSpeedFactor
: floatThe value multiplied by theControllerManager.BaseTurnSpeed.The value multiplied by the
ControllerManager.BaseTurnSpeedto determine the final target angular velocity while this controller is active. The angular velocity is applied when turning towards theControllerManager.FacingDirection.
AirController also has every member of ControllerBase. 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.