Title: Cannon Ball!!
Module: IS52020B/S Perception and Multimedia Computing (2018-2019)

About.
In this program code the velocity of the object is incremented by a constant acceleration value, therefore the velocity at which the object travels is determined by the acceleration value. By time the velocity of the object increases and the object travels at a higher speed. The acceleration always remains at a constant value. Through changing the value of the acceleration one can determine and alter the speed of the object making it move faster or slower. 
As it is explained in basic motion physics velocity can be understood as the speed of a moving object in a particular direction whereas acceleration is any change in the velocity of the object through time. This explains why in the program velocity is initially set as  a two dimensional vector of 0,0 and as the object moves the y-value of the velocity vector changes because the object is only travelling in the y-axis. Accordingly the two dimensional acceleration value is also only applied on the y-axis.

In order to make it more interactive and interesting I’ve decided to add some visual features. Firstly I applied a random fill colour to the cannon ball for creative variety and to keep the sketch interesting and as little boring. 

Moreover I decided to play with the size of the cannonball through time to give some sort of perspective to the sketch. The mouse position determines the initial diameter of each cannonball, however as the sketch progresses the cannon ball size decreases through time. This is because the diameter of each “dot” has been mapped so that an increment in the acceleration reflects a decrement in the diameter of each dot.

This project was part of a coursework submission for the Perception and Multimedia Computing Module in year II of my BSc. (Hons) Digital Arts Computing Degree. All source code for this project can be found at my Git Lab account by following the link below.

https://gitlab.doc.gold.ac.uk/mtabo002/coursework-two/tree/master/LAB6/PAM6
Cannon Ball!!
Published:

Cannon Ball!!

A cannon ball simulation applying basic physics.

Published: