Boolean data type

You are here

AI Walker Script


A simple walker script for Unity 3D in C# that tries to avoid obstacles. It has been used in the ProXedural project at art school, and it made the cows walk towards one of the players. To be honest, it does not really deserve the I in AI. But then again, no one expects cows to be very clever.

Maybe someone can use it as a base to produce something better (oh well, who am I kidding, this has already been done).

using UnityEngine; using System.Collections;

Keeping it Simple


How not to do it:

using System; using UnityEngine; using System.Collections; using System. Collections.Generic;


/// Needs work. /// public class Inventory : MonoBehaviour {