Skip to main content

NonClimbable

A class in Root.Township, the global namespace.

Marks a collider as not climbable. Grabbing it either does nothing or holds then releases, depending on climbFailBehaviour.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private NonClimbable.ClimbFailBehaviour climbFailBehaviourIgnored (can't grab at all) or ReleaseAfterHold (grab, then let go).

Properties​

9 private and internal properties
MemberWhat it is
private bool IClimbable.CanClimb { get; }False when set to Ignored, so hands can't grab; true for ReleaseAfterHold.
private bool IClimbable.CanMove { get; }Always false.
private Vector3 IClimbable.CurentPressure { get; }Always zero.
private float IClimbable.CurrentPressureRatio { get; }Always 0.
private NetworkEntity IClimbable.Entity { get; }Always null.
private float IClimbable.GripPriority { get; }Lowest possible priority, so any other climbable wins.
private float IClimbable.MaximumPressure { get; }Always 0.
private float IClimbable.OldPressureRatio { get; }Always 0.
private bool IClimbable.ReleasesImmediately { get; }Always true.

Events​

MemberWhat it is
event Action BreakRaised when a hand presses on it, to make the grip let go.

Methods​

2 private and internal methods
MemberWhat it is
private bool IClimbable.ApplyPressure(Vector3 pressure)Raises Break and returns false, so the grip lets go.
private float IClimbable.GetGravityBoost(Vector3 normal)Always 0.