Don't Walk By - 8

Don't Walk By - 8

Mar 12, 2020. | By: Evan Diamond
1 min

The eighth CGD blog post about Don’t Walk By

Overview

This week I added more functionality to the points of interest system as well as adding more functionality to my density grid.

Points Of Interest (POI)

On the PoiPoint script I added a maxPawnCount and a poiState. The maxPawnCount allows a limit on how many pawns can path to that poi this stops 5 pawns from surround a chair which looks odd. PoiState what type of poi is the poi, this will dictate idle animation to play at that poi.

  1. Default - default idle animation
  2. Interactable - Interacting animation
  3. Sittable - Sitting Animation.

I also added the PoiPoint script to the prop prefab which turns all props in the scene into pois.

Density Grid

The ai is now ready to start working with my density grid system. The only additions I had to make was a getter of the 1d that stored the grid as well as moving the grid loading from start to the second tick of update. I did this because the level is loaded on the first tick which dictates the size of the 1d the stores the grid.

About

Gamers developing new games.

Social Links

Our Bunker

University of the West of England,
Frenchay Campus, Bristol, BS16 1QY,
United Kingdom.