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.
- Listed in Global namespace: M to O
- Inherits or implements
MonoBehaviour,IClimbable,IIgnoreColliderFlattening,IDontSplit - Nested types
ClimbFailBehaviour
Constructors
| Member | What it is |
|---|---|
NonClimbable() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private NonClimbable.ClimbFailBehaviour climbFailBehaviour | Ignored (can't grab at all) or ReleaseAfterHold (grab, then let go). |
Properties
9 private and internal properties
| Member | What 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
| Member | What it is |
|---|---|
event Action Break | Raised when a hand presses on it, to make the grip let go. |