};
}
@Override
public void update() {
Transform transform = new Transform();
float x = PlayerControl.getMouseDX() * 0.02f;
float y = PlayerControl.getMouseDY() * 0.02f;
PlayerControl.centerMouse();
angles.pitch += y;
angles.yaw += x;
angles.pitch = Math.max(angles.pitch, 0);
angles.pitch = Math.min(angles.pitch, Trig.EIGHTH_CIRCLE);
transform.position = turret.transform.position;
transform.setEulerAngles(angles);
//transform.up = m.transformVector(transform.up);
turret.transform.forward = turret.transform.forward.rotateTowards(transform.forward, 4 * Time.deltaTime());
turret.transform.up = Vector3.yAxis();
Transform t = Frigate.this.transform.concat(transform);
t.position = t.position.plus(t.forward().times(0.3f));
t.position = t.position.plus(t.up().times(0.15f));
view.set(t);
shooty.update();
}