API for modifying a player's speed