public SteeringBehavior(Vehicle vehicle) { this.vehicle = vehicle; this.target = new Vector3(Vector3.zero); this.targetAgent = null; deceleration = Deceleration.normal; wanderTarget = new Vector3(2.0f, 0.0f, 0.0f); }
public void SetTargetAgent(Vehicle targetAgent) { this.targetAgent = targetAgent; }