public void onHitByBullet(HitByBulletEvent event) { double angle = peer.getBodyHeading() + event.getBearingRadians(); hitByBulletAngle = (int) (Math.toDegrees(Utils.normalAbsoluteAngle(angle)) + 0.5); hitByBulletBearing = (int) (event.getBearing() + 0.5); JuniorRobot.this.onHitByBullet(); }