Spring Force

Another example of how you can simulate physics by using vector calculations. Maths provided by The nature of code.

Pull the bob to see the spring force in action.

View code on Github