More helpers, fixed computations of player Y position when sneaking.