Added 2nd method to calcule jump height in paint