Skip to content

five-on-it / packages/sim/src/character / CHARACTER

Variable: CHARACTER ​

const CHARACTER: object

Defined in: packages/sim/src/character.ts:92

Tuning of the on-foot avatar; one kind of character for now.

Type Declaration ​

accel ​

readonly accel: 30 = 30

How fast the character reaches its speed (m/s²): a sprint takes about 0.4 s.

brake ​

readonly brake: 45 = 45

How fast it stops when the input is released (m/s²).

cooldownTicks ​

readonly cooldownTicks: 30 = 30

Ticks before another enter, exit or reset is accepted.

coverReach ​

readonly coverReach: 0.6 = 0.6

How far beyond the capsule's surface a wall still counts as cover (m).

coverSpeed ​

readonly coverSpeed: 3 = 3

Pace along the cover while pinned to it (m/s): a crouching walk, no sprint.

enterRange ​

readonly enterRange: 3 = 3

How far beyond a car's half length the action key still enters it (m).

fleeSpeed ​

readonly fleeSpeed: number

The fastest a bystander runs away from danger (m/s): 30 km/h, a little slower than a sprint (FLEE_PACE).

halfHeight ​

readonly halfHeight: 0.6 = 0.6

Half the straight part of the capsule (m); 1.8 m tall in all.

jumpSpeed ​

readonly jumpSpeed: 5.5 = 5.5

Upward speed of a jump (m/s): about 1.5 m high.

mass ​

readonly mass: 80 = 80

Mass (kg); light enough for a car to shove aside.

peekReach ​

readonly peekReach: 1 = 1

How far along the cover its end is looked for when popping up at tall cover (m).

radius ​

readonly radius: 0.3 = 0.3

Capsule radius (m).

runSpeed ​

readonly runSpeed: number

Sprinting speed (m/s), with the run key held: 35 km/h, a sprinter's pace. Every person runs with it at most (the chasers, the guards, the police on foot): nobody outruns the player.

walkSpeed ​

readonly walkSpeed: 4 = 4

Walking speed (m/s): about 14 km/h.