Class · inherits ControllerBase
ClimbController
A physics character controller that moves its
ControllerManager.RootPart along a climbable surface, such as a
ladder.
About ClimbController
ClimbController is a ControllerBase that produces climbing
movement for a physics-based character. When it is assigned as the
ControllerManager.ActiveController of a ControllerManager, the
manager applies constraints each simulation step that move the
ControllerManager.RootPart across the climbed surface while keeping it
upright and aligned to that surface. Movement follows the surface reported by
the manager's climb sensor (ControllerManager.ClimbSensor); if the
manager has no climb sensor detecting a surface, the controller has no effect.
The direction and target speed come from the requested move velocity scaled by
ControllerBase.MoveSpeedFactor, while the
ClimbController.MoveMaxForce, ClimbController.BalanceSpeed,
and ClimbController.BalanceMaxTorque properties tune how forcefully
and how quickly the root part moves and re-aligns.
Properties 4
AccelerationTime
: floatCurrently unused; reserved for future climb acceleration ramp timing.This property currently has no runtime effect.
ClimbControllerderives target speed from the requested move velocity andControllerBase.MoveSpeedFactorand does not readAccelerationTime.BalanceMaxTorque
: floatThe maximum torque used to keep theControllerManager.RootPartaligned upright and aligned to the climbed surface.The maximum torque used to keep the
ControllerManager.RootPartaligned upright and aligned to theClass.ControllerManager.ClimbSensor.HitNormal. When misaligned, this amount of torque is applied to reach theBalanceSpeedand realign the root part. A higher torque means more force is required to cause the root part to tilt. This property is hidden and has no effect whenControllerBase.BalanceRigidityEnabledis true.BalanceSpeed
: floatThe maximum angular speed used to align theControllerManager.RootPartupright and with the climbed surface.The maximum angular speed used to align the
ControllerManager.RootPartupright and aligned to theClass.ControllerManager.ClimbSensor.HitNormal. A lower value means it takes longer for the root part to recover to the align position when misaligned. A higher value results in a quicker recovery.MoveMaxForce
: floatThe maximum force used by the climbing "motor" to move theControllerManager.RootPartor keep it stationary.
ClimbController 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.