top of page

Autonomous Car (UE5)

This is an autonomous car I made using Unreal Engine 5.

I shall give a short overview of the process of this project, however for more details, I suggest taking a look at the rapport I made HERE.

​

This project was part of my AI classes during my external minor in Portugal. The professor provided us with an environment and basic car controls. It was my task to make the 'brain of the car' by having it send values to the brake/steer/throttle methods based on the situation.

 

The basic principle is very simple. The car shoots 3 traces out of itself, and checks the distance to the borders of the track. When the border is very far away, it indicates that there is a turn, and it will steer this way. Whenever the border is very close, the car needs to steer away quickly. 

​

I am very proud of this project, because even though the principle is very simple, I hadn't used Blueprints & Unreal Engine in a long time. The car works very well on randomly generated flat-tracks, with about a 95% completion rate. Meaning it goes off-track about 5% of the time, before being able to complete a track.

Technical

Below is a snippet of code. It is the part of the code that shoots a line-trace from the left-front side of the vehicle, and then returns the distance of the vehicle to the border of the track.

bottom of page