Alright, so assume yaw is the camera’s yaw, pitch is the camera’s pitch.
Vector3f dir = new Vector3f((float) Math.toDegrees(-Math.sin(Math.toRadians(yaw))), (float) pitch, (float) Math.toDegrees(Math.cos(Math.toRadians(yaw))));
dir.normalise();
What am I doing wrong here? And how do I fix it?