Neon Racer is a racing game that 3 classmates and I worked on for a group project in a game development class.
The player races against 3 other computers to complete 3 laps and colleting points to upgrade their car's stats during the race.
I created the code that generated the race track, that drove the cars on the track, and for the computer cars' AI.
I also created the tracks and the concept art for the look of the game and the cars.
The other classmates each worked on the models, the menus and the audio, which I muted for the video.
For generating the mesh for the track, I created code that calculated a spline's points' position and orientation across a cubic bezier line and used a flat model's vertices to extrude across those points.
I used the same method to create the collision meshes for the cars to follow the track on and the waypoints for the cars to monitor laps and computer cars to follow.
To drive the cars on the track, the car casts 4 or 8 raycasts in their relative down direction and adds a relative up force based on the distance of each raycast at their original positions.
The car then adds gravitational force based on it's down direction to keep it on the track.
For controlling the car, the code adds a relative forward or backwards force and turns by adding relative torque based on the car's local y axis.