August 2018
Beginner
334 pages
10h 19m
English
This recipe will entail creating a new agent behavior:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class AvoidAgent : AgentBehaviour
{
public float collisionRadius = 0.4f;
GameObject[] targets;
}
void Start ()
{
targets = GameObject.FindGameObjectsWithTag("Agent");
}
public override Steering GetSteering()
{
// body
}
Steering steering ...
Read now
Unlock full access