I just created a new simulation. I hope it is what you want.
Because the result did not depent on mass (m=1), so I did not add mass control.
User can change the height, and find out what is the maximum height for the object to be able to complete a circle.

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/coaster1_pkg/coaster1.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(803kB):double click downloaded file to run it. (33 times by 17 users) , Download EJS source (2 times by 1 users) View EJS source