Particle Splitting



Project Overview

This project will focus on particle collisions. Upon particles colliding, there will be an explosion of separate particles for effect. Then the particles in the system that collided will split in half. This was inspired by high-speed star collisions.



Part 1:

Using lab 9, I created a particle system that uses gravitational pull to move the particles towards each other until they collide.



Part 2:

Using lab 8, I created a particle effect upon collision.



Part 3:

Using physics knowledge, I basically simulated an elastic collision occur. First, I made 4 new particles and centered them at the point of collision of the original particles. Then, I set the positions and velocities to move off in diagonals at half the velocity of the original particles in the negative direction.



Final Result:

Putting all parts together, this is a presentation of the final result.



Stretch Goals:

If I were to have more time, I would make it so this entire process happens infinitely until reaching some arbitrary number based on computing power. I would have also liked to include a grid-like approach for optimization such as Barnes-Hut.