top of page

Unity work

AI Scripting for Games

Details

Platform

Engine/Language

Project Aim

  • Windows

  • Unity/C#

  • Final year module

  • Create AI systems and behaviours

About

Final year module to create AI systems including movement, decision making and communications. This was one of my favourite modules as it was run over a series of tests to build an AI system over time. The first tests involved racing spaceships through an asteroid belt. Then we moved onto more advanced tests including target acquisition, pursuing targets and later the students pitted their fleets against each other.

During the module, we studied the history of artificial intelligence for an understanding of how modern systems were developed. Next we looked at Reynolds steering behaviours to understand how to create AI movement within cartesian space using vector maths. Once we created an agent that could move around, threat evaluation was studied to create an agent that could sort and prioritise targets. This would later be used in a target range exercise and convoy assault scenario.

With a working agent that could move and shoot targets, the next stage was to work with a fleet of spaceships to achieve an objective. This was carried out in the station boarding exercise.

Videos/Images

Convoy Assault

The objective is to destroy or disable 9 cargo ships before they reach the warp out. This test worked on more advanced targeting concepts like shooting engine subsystems as well as destroying targets of opportunity. However the AI vessels had a small window of attack because they could speed boost away to escape. 

 

My best score recorded was 5 destroyed, 4 disabled.

Station boarding

Test to board the station in the fastest time using a fleet of ships. The objective is to board the station with the transport ship without it being destroyed by the defenses. Using the fleet of ships working together, I destroyed most of the defenses and then using an event called the transport in to board

bottom of page