jump method

void jump(
  1. double speed
)

Jumps at speed m/s at the next step, if it is on the ground then (with useGravity).

Implementation

void jump(double speed) => pendingJump = speed;