added button to toggle stopOnImpact