Skip to main content

Climber

A class in Root.Township, the global namespace.

Client: smooth locomotion modifier that adds hand climbing for the local player. It makes a ClimbingHandler once the character is linked to the local player.

Constructors​

MemberWhat it is
Climber()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private ClimbingSettings initialSettingsSerialized climbing settings. Not read by this class.
private PlayerUnlock unlockPlayer unlock passed to the climbing handler, probably to gate climbing.

Properties​

MemberWhat it is
override bool CanOverrideMovement { get; }Always true.
ClimbingHandler ClimbingHandler { get; private set; }The handler that does the climbing. Null until the local player is linked.

Methods​

MemberWhat it is
override void DrawGizmos(SmoothLocomotion locomotion)Empty.
override void GetFrictionMultiplier(ref float friction)Multiplies friction by the climbing handler's friction.
override void GetHeight(ref float height)Sets the body height to the climbing handler's height.
override void GetUpwardGrip(ref float upwardGrip)Sets upward grip to 1 while climbing.
override void IsBlockingTeleportation(ref bool isBlocking)Blocks teleport locomotion while climbing.
override bool IsOverridingMovement()True while climbing.
override void LocomotionUpdate()Runs the climbing handler each locomotion update.
override bool MovementOverride()While climbing, uses the climbing step height and applies only gravity, replacing normal movement.
protected override void Awake()Waits for the character to be linked to the local player.
2 private and internal methods
MemberWhat it is
private void LateUpdate()Runs the climbing handler's late update.
private void Linked()Creates the climbing handler and registers this modifier with locomotion.