ClimberSettings
A class in Root.Township, the global namespace.
Global settings for an older climbing setup. Nothing else in this build reads it; climbing now uses ClimbingSettings through ClimbingHandler.
- Listed in Global namespace: C to D
- Inherits or implements
GlobalSettings<ClimberSettings> - Derived types
ClimberSettings - Nested types
Raycast - Attributes
GlobalSettings
Constructors
| Member | What it is |
|---|---|
ClimberSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|---|
InfoDisplayerAccess gripAccess | Debug info display for grip. |
ClimberSettings.Raycast[] raycasts | Backing field for Raycasts. |
InfoDisplayerAccess strengthAccessLeft | Debug info display for left hand strength. |
InfoDisplayerAccess strengthAccessRight | Debug info display for right hand strength. |
24 private and internal fields
| Member | What it is |
|---|---|
private int activeTightGripLayer | Layer index for a tight grip, probably. No other code reads this settings asset. |
private float breakDistanceSquared | Squared hand distance at which a grip breaks, probably. |
private float climbingFriction | Friction while climbing. |
private float climbingHeight | Body height while climbing. |
private LayerMask climbingMask | Layers that can be climbed. |
private float climbingStepHeight | Character step height while climbing. |
private float climbVelocityMultiplier | Scale for climbing velocity. |
private AnimationCurve cornerAngleDotGrip | Curve for grip at corners by angle dot product. |
private AnimationCurve cornerDotGrip | Curve for grip at corners by dot product. |
private Climbable defaultClimbable | Climbable used when a surface has none. |
private float downGripOffsetY | Vertical grip offset when pulling down. |
private float downGripOffsetZ | Forward grip offset when pulling down. |
private float gripHapticDuration | Haptic length used by GetHapticOverUpwardAlignment. |
private float gripMultiplier | Scales the result of GetGripStrengthMultiplier. |
private AnimationCurve gripOverDistance | Curve from hand offset length to upward grip, blended by verticality. |
private AnimationCurve gripOverVerticality | Curve from hand offset direction (y) to how much grip is kept regardless of distance. |
private AnimationCurve hapticStrengthOverDistance | Curve from distance to haptic strength. |
private AnimationCurve hapticStrengthOverUpwardAlignment | Curve from upward alignment to haptic strength. |
private bool isRequiringClimbable | Whether a surface needs a Climbable to be climbed, probably. |
private float lowerMultiplier | Multiplier for enabling gravity while lowering yourself. |
private float minDistanceToApplyForceSquared | Squared hand movement below which no climbing force is applied, probably. |
private AnimationCurve strengthOverDistance | Curve from hand offset length to grip strength, blended by verticality. |
private float upGripOffsetY | Vertical grip offset when pulling up. |
private float upGripOffsetZ | Forward grip offset when pulling up. |
Properties
| Member | What it is |
|---|---|
int ActiveTightGripLayer { get; } | Layer index for tight grip checks. |
float BreakDistanceSquared { get; } | Squared distance at which a grip breaks. |
float ClimbingFriction { get; } | Friction while climbing. |
float ClimbingHeight { get; } | Height used for climbing checks. |
LayerMask ClimbingMask { get; } | Layers that can be climbed. |
float ClimbingStepHeight { get; } | Step height while climbing. |
float ClimbVelocityMultiplier { get; } | Multiplier on climbing velocity. |
AnimationCurve CornerAngleDotGrip { get; } | Curve of grip strength against corner angle. |
AnimationCurve CornerDotGrip { get; } | Curve of grip strength against corner alignment. |
Climbable DefaultClimbable { get; } | Climbable used for colliders that have none. |
float DownGripOffsetY { get; } | Vertical grip offset when gripping downwards. |
float DownGripOffsetZ { get; } | Forward grip offset when gripping downwards. |
float GripMultiplier { get; } | Overall grip strength multiplier. |
bool IsRequiringClimbable { get; } | Whether only objects with a climbable can be climbed. |
float LowerMultiplier { get; } | Multiplier for enabling gravity while lowering oneself. |
float MinDistanceToApplyForceSquared { get; } | Squared distance below which no climbing force is applied. |
ClimberSettings.Raycast[] Raycasts { get; } | Ray start and end points used for climbing checks. |
float UpGripOffsetY { get; } | Vertical grip offset when gripping upwards. |
float UpGripOffsetZ { get; } | Forward grip offset when gripping upwards. |
Methods
| Member | What it is |
|---|---|
float GetGripStrengthMultiplier(SplitVector3 offset) | Grip strength for a hand offset, from verticality and distance curves, times GripMultiplier. |
void GetHapticOverUpwardAlignment(Controller controller, float upwardAlignment) | Plays a haptic on the controller scaled by how upward the grip is. |
void GetHapticStrengthOverDistance(Controller controller, float distance) | Plays a haptic on the controller scaled by grip distance. |
float GetUpwardGripMultiplier(SplitVector3 offset) | Upward grip factor for a hand offset, from verticality and distance curves. |