Open in app

Sign In

Write

Sign In

Chris Hilton
Chris Hilton

130 Followers

Home

About

Jan 27

Generating OffMesh Links for AI in Unity

Objective: To allow our AI Agent to bridge gaps in floors using OffMesh Links in Unity. Here we can see above that we have a platform next to the last waypoint, but the AI Agent is unable to reach it because there is no NavMesh surface to walk on. How…

Unity3d

3 min read

Generating OffMesh Links for AI in Unity
Generating OffMesh Links for AI in Unity
Unity3d

3 min read


Jan 26

Using a Finite State Machine to Create Smart AI in Unity

Objective: Creating a Finite State Machine (FSM) to control the AI Agents behaviour. First of all we have to ask ourselves what is an FSM? A Finite State Machine is where a game designer creates all the possible situations an AI Agent could possibly encounter and then program a specific…

Unity3d

4 min read

Using a Finite State Machine to Create Smart AI in Unity
Using a Finite State Machine to Create Smart AI in Unity
Unity3d

4 min read


Jan 25

Creating a Looping NavMesh Agent in Unity

Objective: To get an AI agent setup to loop through a series of waypoints and return via the same route (in reverse). So far we have created the NavMesh surface, added the AI Agent to our project and got them automatically moving between random waypoints. Now, I would like to…

Unity3d

3 min read

Creating a Looping NavMesh Agent in Unity
Creating a Looping NavMesh Agent in Unity
Unity3d

3 min read


Jan 24

Moving Agents on a NavMesh in Unity

Objective: How to get an AI agent to move along a NavMesh in Unity. Moving on from the previous article where we looked at how to bake a NavMesh surface, let’s now take a look at how to get them moving along it. Adding to the Scene Setup From the previous scene setup, I just…

Unity3d

3 min read

Moving Agents on a NavMesh in Unity
Moving Agents on a NavMesh in Unity
Unity3d

3 min read


Jan 23

Setting Up a NavMesh in Unity

Objective: To learn how to setup a NavMesh surface for the AI agents to move around in Unity. This is a new article series that is going to look at some AI fundamentals in Unity such as — Baking a NavMesh surface, moving an AI agent on a NavMesh, creating…

Unity3d

4 min read

Setting Up a NavMesh in Unity
Setting Up a NavMesh in Unity
Unity3d

4 min read


Jan 20

Click to Move System Using Raycasting in Unity

Objective: To move a game object to a location using Raycasting in Unity. For the final article for the raycasting series, I am going to create a click to move system using Raycasting! Getting the Scene Setup I have used a 3D cube to create a simple floor and added in another cube for…

Unity3d

3 min read

Click to Move System Using Raycasting in Unity
Click to Move System Using Raycasting in Unity
Unity3d

3 min read


Jan 19

Creating Bullet Holes via Raycasting in Unity

Objective: Let’s create some bullet holes at a target reticules location using raycasting in Unity. Moving on from the previous article which looked at layer masks with raycasting, let’s have a bit of fun and add some bullet holes to a wall where our target reticule raycast clicks. Getting the Scene Setup I have…

Unity3d

4 min read

Creating Bullet Holes via Raycasting in Unity
Creating Bullet Holes via Raycasting in Unity
Unity3d

4 min read


Jan 18

Raycasting With LayerMasks in Unity

Objective: Using a LayerMask with our Raycast to determine which game objects can change color when clicking on them. When using Raycasts, LayerMasks come in handy as we can provide additional checks to determine which game objects we are able to click on, depending on which layer they are on. …

Unity3d

3 min read

Raycasting With LayerMasks in Unity
Raycasting With LayerMasks in Unity
Unity3d

3 min read


Jan 17

Placing Objects via Raycast Hits in Unity

Objective: To Instantiate a sphere game object where we click the mouse using raycasting in Unity. Moving on from the last article where we got our raycast setup, let’s now instantiate a game object where we click on the screen. Getting Setup Keeping with the super simple project setup theme, I am…

Unity3d

3 min read

Placing Objects via Raycast Hits in Unity
Placing Objects via Raycast Hits in Unity
Unity3d

3 min read


Jan 16

Casting Raycasts from Mouse Position in Unity

Objective: Cast a ray to a mouse position in Unity, hitting an object and changing it to a random color. New year, and a new project! This short series is going to look at raycasting, instantiating objects when a raycast collides with an object, layer masks, creating bullet holes and…

Unity3d

3 min read

Casting Raycasts from Mouse Position in Unity
Casting Raycasts from Mouse Position in Unity
Unity3d

3 min read

Chris Hilton

Chris Hilton

130 Followers

Passionate Unity Game Developer

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech