Simulate and visualise a Trebuchet.
] add Trebuchet#master
# using Blink # if not on Juno or IJulia
using Trebuchet
t = TrebuchetState()
simulate(t)
target = 100 # or nothing
s = visualise(t, target)
if @isdefined(Blink)
body!(Blink.Window(), s)
end
The code corresponding to this blog post can be found here
http://www.virtualtrebuchet.com/#documentation_EquationsOfMotion