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.
- Listed in Global namespace: C to D
- Inherits or implements
SmoothLocomotionModifier
Constructors
| Member | What it is |
|---|---|
Climber() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private ClimbingSettings initialSettings | Serialized climbing settings. Not read by this class. |
private PlayerUnlock unlock | Player unlock passed to the climbing handler, probably to gate climbing. |
Properties
| Member | What 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
| Member | What 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. |