x y flip in velocity.update