public override void Reset() { // reset each agent LowSpeedTurn.ResetStarts(); foreach (LowSpeedTurn t in _all) { t.Reset(); } }
public override void Open() { // create a given number of agents with stepped inital parameters, // store pointers to them in an array. LowSpeedTurn.ResetStarts(); for (int i = 0; i < LST_COUNT; i++) { _all.Add(new LowSpeedTurn(Annotations)); } // initial selected vehicle Demo.SelectedVehicle = _all[0]; // initialize camera Demo.Camera.Mode = Camera.CameraMode.Fixed; Demo.Camera.FixedUp = _lstPlusZ; Demo.Camera.FixedTarget = _lstViewCenter; Demo.Camera.FixedPosition = _lstViewCenter; Demo.Camera.FixedPosition.Y += LST_LOOK_DOWN_DISTANCE; Demo.Camera.LookDownDistance = LST_LOOK_DOWN_DISTANCE; Demo.Camera.FixedDistanceVerticalOffset = Demo.CAMERA2_D_ELEVATION; Demo.Camera.FixedDistanceDistance = Demo.CAMERA_TARGET_DISTANCE; }