A tutorial in creating very basic simulations with javascript
<p>I have recently been learning to programme in Javascript. I was told a while a go that it was possible to create 'simulations'. I am currently a university student studying physics and am particularly interested in making a very basic simulation that shows two (2D) balls being drawn to each other under the acts of gravity ( so basically a very simple simulator illustrating gravitational attraction - I was told this was particularly simple?)</p>

<p>However I have been searching various websites as well as emailing people from forums (despite getting no response). Is there a tutorial where I can learn to code this sort of thing (I would imagine  it involves introducing the idea of vectors). I am able to create the visual balls (using some basic html) and the actual Maths side is not a problem. The issue really lies in being able to draw all these things together.</p>
