Class Constants.Character
public static class Constants.Character
- Inheritance
-
Constants.Character
- Inherited Members
Fields
CrouchSpeed
Movement speed while crouching.
public const float CrouchSpeed = 2
Field Value
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
Remarks
Stamina units consumed per jump.
JumpUpSpeed
Upward velocity applied when jumping.
public const float JumpUpSpeed = 6.5
Field Value
Remarks
Upward velocity in meters per second.
RunSpeed
Movement speed while running.
public const float RunSpeed = 4
Field Value
Remarks
Movement speed in meters per second.
SprintSpeed
Movement speed while sprinting.
public const float SprintSpeed = 6
Field Value
Remarks
Movement speed in meters per second.
SprintStaminaCost
Stamina cost per second while sprinting.
public const float SprintStaminaCost = 5
Field Value
Remarks
Stamina units consumed per second while sprinting.
WalkSpeed
Movement speed while walking.
public const float WalkSpeed = 1.5
Field Value
Remarks
Movement speed in meters per second.