What do you mean the axes are reversed? Does it spin in the opposite direction than you expect, are the Yaw and Pitch reversed, or what? What are you trying to do overall?
EDIT: in case you wanted to know how to rotate an object according to camera axes, regardless of the object’s current rotation (or can’t reconstruct them for whatever reason), I’ll add that answer as well:
PREVIOUS ANSWER:
To me, it looks like your convoluting your matrix. Since your always using the Apartment matrix as a reference, but then changing the Apartment matrix every tick, you’re changing what ‘left’, ‘right’, ‘up’ and ‘down’ means. Try building the rotator from components instead:
Btw, the order of Eulers is FRotator(Pitch, Yaw, Roll) - you have Pitch and Roll swapped (by name at least, if not by intention). Also, to me ‘YawCamera’ and ‘PitchCamera’ seem like misnomers but that’s up to you as well.