Skip to main content

DefaultClimbable

A class in Root.Township, the global namespace.

The climbable used when a grabbed collider has no climbable of its own, so plain surfaces can be climbed. Held by ClimbingSettings.DefaultClimbable.

Constructors​

MemberWhat it is
DefaultClimbable()Creates a DefaultClimbable with default values.

Properties​

MemberWhat it is
bool CanClimb { get; }Always true.
bool CanMove { get; }Always false.
Vector3 CurentPressure { get; }Always zero.
float CurrentPressureRatio { get; }Always 0.
NetworkEntity Entity { get; }Always null.
float GripPriority { get; }Always 1. Climbables with a higher priority win the grab.
float MaximumPressure { get; }Always -1 (no limit).
float OldPressureRatio { get; }Always 0.
bool ReleasesImmediately { get; }Always false.

Events​

MemberWhat it is
event Action BreakNever raised; adding handlers does nothing.

Methods​

MemberWhat it is
bool ApplyPressure(Vector3 pressure)Ignores the pressure and returns true.
virtual float GetGravityBoost(Vector3 normal)Returns the surface normal's Y, so flatter tops give more boost.