A screenshot of the projectile motion model application

Projectile Motion Model


A C# Projectile Motion Model


LINKS

You can find this project at https://github.com/aashish1498/ProjectileMotionModel.


DETAILS

The project uses multiple solutions to solve a projectile motion problem where the target location is known, but a power/velocity and angle is required. The project was created in C# and XAML using WPF.

The first is a pure analytical solution which is solved automatically as the user moves the position of the green square (you) and the red square (target). This solution will also account for wind.

But don’t you just hate it when you’re trying to shoot down a target, but a random interdimensional portal shows up and messes up your shot? Me too. That’s why there’s a second solution that accounts for such improbabilities. It works by solving the ODE related to the forces on the projectile (gravity and wind) for each step in time, and continuously checking for a hit with a portal. I used the Runge-Kutta method to solve the ODEs.

You may be wondering why the words ‘Shellshock’ are scattered around the files of the project, and why there is no background, as if to allow it to overlay over a game of sorts. Yet another mystery of the universe left unanswered…



ALL POSTS