removed println messages
This commit is contained in:
@@ -751,7 +751,6 @@ public class RaceViewController extends Controller {
|
||||
chosenMark = mark1;
|
||||
} else {
|
||||
boolean rounding = port;
|
||||
System.out.println(direction);
|
||||
switch (direction) {
|
||||
case 2:
|
||||
rounding = !port;
|
||||
@@ -822,7 +821,6 @@ public class RaceViewController extends Controller {
|
||||
double angle = gpsConverter.getAngle(gpsConverter.convertGPS(start.getMark1().getPosition()),
|
||||
gpsConverter.convertGPS(end.getMark1Position()));
|
||||
angle = (Math.toDegrees(angle) % 360 + 360) % 360;
|
||||
System.out.println(angle);
|
||||
int dir = 0; //0 = top 1 = right 2 = down 3 = down
|
||||
if (angle < 315){
|
||||
if (angle > 45){
|
||||
@@ -1328,7 +1326,6 @@ public class RaceViewController extends Controller {
|
||||
public void addToFlock(){
|
||||
Annotation3D newSeagull = new Annotation3D(new SeagullMesh());
|
||||
newSeagull.setY(-15);
|
||||
System.out.println(newSeagull.getY());
|
||||
newSeagull.setX(67);
|
||||
newSeagull.setZ(43);
|
||||
newSeagull.setXRot(0);
|
||||
|
||||
@@ -58,7 +58,6 @@ public class SeagullFlock{
|
||||
public void handle(long now) {
|
||||
for (int i = 0; i < seagulls.size(); i++){
|
||||
Subject3D seagull = seagulls.get(i);
|
||||
System.out.println(seagull.getY());
|
||||
seagull.getMesh().setTranslateY(zPos);
|
||||
|
||||
seagull.setHeading(heading);
|
||||
@@ -84,7 +83,6 @@ public class SeagullFlock{
|
||||
public void addToFlock(){
|
||||
if (seagulls.size() < 3) {
|
||||
Annotation3D newSeagull = new Annotation3D(new SeagullMesh());
|
||||
System.out.println("After Create " + newSeagull.getY());
|
||||
newSeagull.setXRot(0);
|
||||
seagulls.add(newSeagull);
|
||||
// seagulls.add(new Annotation3D(new Sphere(5)));
|
||||
|
||||
@@ -19,15 +19,13 @@ public class SeagullMesh extends MeshView{
|
||||
|
||||
public SeagullMesh() {
|
||||
setMesh(Assets3D.seagull[0].getMesh());
|
||||
setTranslateY(10);
|
||||
System.out.println("On create " + getTranslateY());
|
||||
// PhongMaterial white = new PhongMaterial(Color.WHITE);
|
||||
// setMaterial(white);
|
||||
// Random rand = new Random();
|
||||
// flapPeriod = rand.nextInt(9);
|
||||
// flapPeriod = 60 * (11 + flapPeriod);
|
||||
// flapStrength = rand.nextInt(3) + 2;
|
||||
//scheduledFlap.start();
|
||||
PhongMaterial white = new PhongMaterial(Color.WHITE);
|
||||
setMaterial(white);
|
||||
Random rand = new Random();
|
||||
flapPeriod = rand.nextInt(9);
|
||||
flapPeriod = 60 * (11 + flapPeriod);
|
||||
flapStrength = rand.nextInt(3) + 2;
|
||||
scheduledFlap.start();
|
||||
}
|
||||
|
||||
private AnimationTimer flap = new AnimationTimer() {
|
||||
|
||||
Reference in New Issue
Block a user