Planetary Gravity
Planetary Gravity
This was a project that I created for an advanced game development class I took while in college. This is a project that simulates planetary gravity similar to what is in the Mario Galaxy Games. For this project, I recreated several of the gravity shapes found in Mario Galaxy including Spheres, Cylinders, Cubes, and Donuts. I also tried to recreate the controls so that it feels intuitive to control the player even at fixed camera positions.
Here is a video demonstrating my breakdown of Mario Galaxy's Controls while the camera is at a fixed point, as well as a demonstration of it's implementation
Here are some images of the different planet shapes I created as well as the corresponding code:
Cube
Sphere
Cylinder
Donut