The hectors XZ velocity should be adjusted when hitting a wall, so that the hector will not slide around corners on slippery surfaces or change direction in midair if a jump includes sliding off a wall.