Пример #1
0
 public void SetInitialStates(
     float maxSpeed,
     float maxTurnSpeed,
     bool showMeshes,
     bool showTails,
     float sep,
     float ali,
     float coh,
     float xSpeed,
     float ySpeed,
     float zSpeed,
     float maxDistance,
     bool targetMesh,
     float boidCount,
     float minMass,
     float maxMass,
     float visionSize,
     bool randomStart
     )
 {
     controlsPanel.SetMaxSpeed(maxSpeed);
     controlsPanel.SetMaxTurnSpeed(maxTurnSpeed);
     controlsPanel.SetMeshToggle(showMeshes);
     controlsPanel.SetTailsToggle(showTails);
     controlsPanel.SetSeparation(sep);
     controlsPanel.SetAlignment(ali);
     controlsPanel.SetCohesion(coh);
     controlsPanel.SetXSpeed(xSpeed);
     controlsPanel.SetYSpeed(ySpeed);
     controlsPanel.SetZSpeed(zSpeed);
     controlsPanel.SetMaxDistance(maxDistance);
     controlsPanel.SetTargetMeshToggle(targetMesh);
     controlsPanel.SetBoidCount(boidCount);
     controlsPanel.SetMinMass(minMass);
     controlsPanel.SetMaxMass(maxMass);
     controlsPanel.SetVisionSize(visionSize);
     controlsPanel.SetRandomStarts(randomStart);
 }