Package com.szuppe.jakub.common

Examples of com.szuppe.jakub.common.Acceleration2D.reverseYAcc()


    Coordinates2D correctedPaddleCoordinates = new Coordinates2D(paddleMockup.getX(), levelHeight
        - paddleMockup.getY());
    SpeedVector2D correctedSpeed = paddleMockup.getSpeed();
    correctedSpeed.reverseYSpeed();
    Acceleration2D correctedAcceleration = paddleMockup.getRetardation();
    correctedAcceleration.reverseYAcc();
    PaddleMockup correctedPaddleMockup = new PaddleMockup(correctedPaddleCoordinates, correctedSpeed,
        correctedAcceleration);
    return correctedPaddleMockup;
  }
View Full Code Here


  {
    Coordinates2D correctedBallCoordinates = new Coordinates2D(ballMockup.getX(), levelHeight - ballMockup.getY());
    SpeedVector2D correctedSpeed = ballMockup.getSpeed();
    correctedSpeed.reverseYSpeed();
    Acceleration2D correctedAcceleration = ballMockup.getAcceleration();
    correctedAcceleration.reverseYAcc();
    BallMockup correctedBallMockup = new BallMockup(correctedBallCoordinates, ballMockup.getRadius(),
        correctedSpeed, correctedAcceleration);
    return correctedBallMockup;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.