- Unity 2018 Artificial Intelligence Cookbook(Second Edition)
- Jorge Palacios
- 34字
- 2021-07-16 18:11:28
How to do it...
We just need to change the SetSteering function's signature and definition:
public void SetSteering (Steering steering, float weight) { this.steering.linear += (weight * steering.linear); this.steering.angular += (weight * steering.angular); }