I just create an EJS version of similar applet.
You can use mouse to drag the velocity vector to change the direction and magnitude of the velocity vector. Enjoy!

VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.


Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.