August 2018
Intermediate to advanced
794 pages
28h 4m
English
To make an NPC seek or flee from a moving object, follow these steps:
using UnityEngine; public class SimplePlayerControl : MonoBehaviour { public float speed = 1000; private Rigidbody rigidBody; private Vector3 newVelocity; private void Start() { rigidBody = GetComponent<Rigidbody>(); ...Read now
Unlock full access