public IntellegenceHunter( Ship arg_target ) { target = arg_target; angle_tracker = new PID(10f, 0.0f, 10f); x_tracker = new PID(1f, 0.0f, 0.5f); y_tracker = new PID(1f, 0.0f, 0.5f); }
public IntellegenceRoamer(float gain = 1.0f) { targets = new List<Vector2>(); for (int i = 0; i < 4; i++) { targets.Add(Utility.RandVec(target_range)); } target = targets[0]; targets.RemoveAt(0); target_ok_distance = 20f; angle_tracker = new PID(10f * gain, 0.0f * gain, 10f * gain); x_tracker = new PID(0.3f * gain, 0.0f * gain, 0.5f * gain); y_tracker = new PID(0.3f * gain, 0.0f * gain, 0.5f * gain); /* angle_tracker = new PID(10f * Utility.random.Next(5, 15) / 10f, 0.5f * Utility.random.Next(5, 15) / 10f, 10f * Utility.random.Next(5, 15) / 10f); x_tracker = new PID(0.1f * Utility.random.Next(5, 15) / 10f, 0.2f * Utility.random.Next(5, 15) / 10f, 0.2f * Utility.random.Next(5, 15) / 10f); y_tracker = new PID(0.1f * Utility.random.Next(5, 15) / 10f, 0.2f * Utility.random.Next(5, 15) / 10f, 0.2f * Utility.random.Next(5, 15) / 10f); */ }