top of page
Coffee Kart

Project summary
This project was created in one week that me and some other students at school did for a gamejam!
Tools
Engine: Unity
Language: C#
Group project
Overview
Coffee Kart is a racing game where a total of four players can join in locally. Choose between seven playable characters, all with different attributes such as speed, acceleration and drift capability.
Creating the race track
I used Unity's spline tool to create the race course as it allowed me to design smooth curves and different height levels that made the course more engaging for the players to race on. I then used spline instatiate to fill up the track with a curved mesh.
Player vehicle
When driving with the vehicle I noticed that the player would not rotate when sliding upon the walls. To fix this I added four raycasts to the player and check if some of the raycasts is not hitting the ground and rotate the player accordingly.
Not rotating

Rotating script

Rotating

Raycasts

I also implemented drifting in the game that was based on taking the right side of the player and increasing the velocity to make it feel like the side of the player was going forward. By also increasing the drag attribute in the Rigidbody of the player it created a sliding effect.
Drifting

Drifting code

bottom of page
