Table of Contents

Class Constants.Character

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll
public static class Constants.Character
Inheritance
Constants.Character
Inherited Members

Fields

ClimbHangClearance

How far past the body's radius a climber hangs off the climbable's line, metres.

public const float ClimbHangClearance = 0.15

Field Value

float

ClimbJumpOffSpeed

How fast a jump off a climbable pushes away from it, m/s.

public const float ClimbJumpOffSpeed = 2.5

Field Value

float

ClimbJumpOffUpSpeed

How fast a jump off a climbable lifts, m/s.

public const float ClimbJumpOffUpSpeed = 2

Field Value

float

ClimbJumpRegrabSeconds

Seconds after a jump off a climbable before taking hold again: longer, so a jump off carries away.

public const float ClimbJumpRegrabSeconds = 0.75

Field Value

float

ClimbLandingMetres

How far past the top a climber steps off onto the upper floor, metres along the top's exit.

public const float ClimbLandingMetres = 0.6

Field Value

float

ClimbMantleSpeed

How fast the step on or off at the top goes (up over the edge, or out over it), m/s.

public const float ClimbMantleSpeed = 2.5

Field Value

float

ClimbReach

How far a climbable can be reached from, metres past where its climber would hang (and either side of its width).

public const float ClimbReach = 0.5

Field Value

float

ClimbRegrabSeconds

Seconds after letting go (at the bottom, off the top or by a jump) before a character takes hold again.

public const float ClimbRegrabSeconds = 0.4

Field Value

float

ClimbShuffleSpeed

How fast a climber shuffles across a ladder, m/s.

public const float ClimbShuffleSpeed = 0.8

Field Value

float

ClimbSlideSpeed

How fast holding Crouch slides down a climbable, m/s: hands loose on the rails or the rope.

public const float ClimbSlideSpeed = 4

Field Value

float

ClimbSnapSpeed

The fastest a climber is drawn onto its hold, m/s: a grab from a little way off is a short glide, not a snap.

public const float ClimbSnapSpeed = 6

Field Value

float

ClimbSpeed

Climbing speed up or down a ladder, m/s, before Move Speed (and Climb Speed, where a character has it). A rope ladder and a rope are slower (KindShare(SceneClimbableKind)).

public const float ClimbSpeed = 1.8

Field Value

float

ClimbStepClearance

How far over the top the feet are lifted to clear the edge on the way off (and on), metres.

public const float ClimbStepClearance = 0.2

Field Value

float

ClimbStepTimeoutSeconds

Seconds a step on or off at the top may take before it is given up (geometry in the way).

public const float ClimbStepTimeoutSeconds = 2.5

Field Value

float

ClimbTopHoldMetres

How far below the top of a climbable a climber's feet are when it starts to step off, metres.

public const float ClimbTopHoldMetres = 1

Field Value

float

CrouchSpeed

Movement speed while crouching.

public const float CrouchSpeed = 2

Field Value

float

Remarks

Movement speed in meters per second.

Gravity

Gravity vector applied to characters. static readonly because UnityEngine.Vector3 is a non-primitive type and cannot be const.

public static readonly Vector3 Gravity

Field Value

Vector3

Remarks

Standard gravity vector applied to character movement.

JumpStaminaCost

Stamina cost per jump.

public const float JumpStaminaCost = 5

Field Value

float

Remarks

Stamina units consumed per jump.

JumpUpSpeed

Upward velocity applied when jumping.

public const float JumpUpSpeed = 6.5

Field Value

float

Remarks

Upward velocity in meters per second.

RunSpeed

Movement speed while running.

public const float RunSpeed = 4

Field Value

float

Remarks

Movement speed in meters per second.

SprintSpeed

Movement speed while sprinting.

public const float SprintSpeed = 6

Field Value

float

Remarks

Movement speed in meters per second.

SprintStaminaCost

Stamina cost per second while sprinting.

public const float SprintStaminaCost = 5

Field Value

float

Remarks

Stamina units consumed per second while sprinting.

SwimClimbOutLedgeMetres

How high a ledge over the water a swimmer can climb out onto, metres.

public const float SwimClimbOutLedgeMetres = 1.3

Field Value

float

SwimClimbOutTicks

Ticks a climb out of the water lasts.

public const int SwimClimbOutTicks = 12

Field Value

int

SwimDiveLookDegrees

Looking further down than this, degrees, while moving dives.

public const float SwimDiveLookDegrees = 20

Field Value

float

SwimEnterSubmersion

Submersion (share of the capsule's height under the surface) at which a wading character starts to swim.

public const float SwimEnterSubmersion = 0.6

Field Value

float

SwimExitSubmersion

Submersion under which a swimmer with ground under it stands up again. Below the enter mark, so the two never flicker.

public const float SwimExitSubmersion = 0.45

Field Value

float

SwimFloatSubmersion

Submersion a swimmer floats at: head and shoulders out.

public const float SwimFloatSubmersion = 0.75

Field Value

float

SwimSpeed

Swimming speed, m/s, before the Swim Speed attribute.

public const float SwimSpeed = 2

Field Value

float

SwimSprintSpeed

Swimming speed with sprint held (paid for in stamina at SwimSprintStaminaCost), m/s.

public const float SwimSprintSpeed = 3.2

Field Value

float

SwimSprintStaminaCost

Stamina per second a fast swim costs.

public const float SwimSprintStaminaCost = 6

Field Value

float

SwimVerticalSpeed

How fast holding Jump or Crouch rises or dives, m/s.

public const float SwimVerticalSpeed = 1.8

Field Value

float

WalkSpeed

Movement speed while walking.

public const float WalkSpeed = 1.5

Field Value

float

Remarks

Movement speed in meters per second.