August 2018
Beginner
334 pages
10h 19m
English
Now, we need to make some changes to the Agent class:
using System.Collections.Generic;
public float priorityThreshold = 0.2f;
private Dictionary<int, List<Steering>> groups;
groups = new Dictionary<int, List<Steering>>();
public virtual void LateUpdate () { // funnelled steering through priorities steering = GetPrioritySteering(); groups.Clear(); // ... the rest of the computations ...Read now
Unlock full access