Posts

Autonomous cars

Autonomous cars In science, the word autonomous refers to an object that is able to independently decided and make decision based on the data received. People have the dreams and concepts to develop new vehicles to improve the future of transportation. I would say that the future of transportation is in the hands of the big companies developing self driving vehicles. Autopilot controls are not yet capable of functioning without humans being present but we are getting closer to it. Companies and researchers are working together to make sure that autonomous cars meet that standards and are safe for the public to use. its predicted that we will have fully autonomous cars in the next decade which is getting the interest of investors and companies to invest their money into it. The technologies used in autonomous cars are improving by the end of this year the US will already have autonomous cars on the roads in LA and various tests have already been carried out to insure that the fir...

Day 7

Image
Wandering AI This script is not that difficult to understand. Basically the character moves at a certain speed in any direction. There are also waiting time implemented so that it wouldn't move all the time but to have mini breaks in between.

Day 6

Image
Procedural item spawning I wrote a script to make the engine spawn a game object of my choice near the object the script is attached to. I also used a simple for loop to limit how many items are spawned when the code is run.  The picture below demonstrates the code in action. Every time the code is run, the object will spawn in random places in the given area.  Item Pickup system The code for the pickup system was very simple. All it has to do, is to destroy the item when collided and increase the counter. Pickup system in action as seen in the video below. via GIPHY

Day 5

Image
Artificial intelligence - Patrolling and way points As part of my game I decided to use wooden crates as way points. Each crate has a tag which is also defined in the script that marks them as way points for the AI character to walk past.  The code below defines the base values for the script above but also acts as a core for the patrol state.  Using the script in the animator In order to pump life into the AI characters in my game I used Animator to link the patrol node to my entity as seen in the picture below. The AI character will keep on running from one way point to another because there is no exit state attached to the "Entry" node. Patrolling in action

Day 4

Image
Artificial intelligence - recognising and attacking the player character I wrote a C Sharp script for the AI character to change colour when it sees the player and when the player gets in the attack radius, the AI will chase the player. The code below defines the AI character's behaviour when it sees the player.  To make things easier, many variables such as "attack distance" can be changed. 

Day 3

Image
Implementing Navigation and Navigation Agent meshes The picture below demonstrates navigation so that AI character know the path to walk and acknowledge the obsticles AI characters also require a component to make them understand the navigation.

Day 2

Image
I downloaded Unity standard assets to get a basic first person controller script. The picture below shows how it is implemented. The first person controller provided by Unity comes with all basic settings needed for a first person shooter player character