Function set_momentum

Source
pub fn set_momentum(pid: u16, x: f64, y: f64, z: f64)
Expand description

Set the momentum of a player.

This changes the coordinates recorded for that player’s momentum in the server memory, but
does not by itself send a packet.

pid The player ID.
x The X momentum.
y The Y momentum.
z The Z momentum.

Returns void