Updated handPosToDirection

temp.z is usable for height change