void VerticalCollision(Vector2 actorLocation, Vector2 corner, ref Vector2 moveAmount) { Collided = true; if (moveAmount.Y > 0) { location = new Vector2(location.X, actorLocation.Y - this.collideHeight - 1); } else if (moveAmount.Y < 0) { location = new Vector2(location.X, actorLocation.Y + actorManager.GetActorHeight(corner)); } moveAmount.Y = 0; velocity.Y = 0; }