August 2018
Beginner
334 pages
10h 19m
English
Thanks to our previous hard work, this recipe is a short one:
using UnityEngine;
using System.Collections;
public class AvoidWall : Seek
{
// body
}
public float avoidDistance; public float lookAhead;
public override void Awake()
{
base.Awake();
target = new GameObject();
}
public override Steering GetSteering()
{
// body
}
Steering steering = new Steering(); Vector3 position = transform.position; Vector3 rayVector ...
Read now
Unlock full access