Vector/matrix multiplication is not commutative. The order of operands matters. If you transform into basis space then it needs to be basis * vector, not vector * basis.
Thank you for letting me know about how they work it works better now but only when i rotate the camera to the left is there any reason for this
You shouldn’t be manipulating the basis. Just directly use camera’s global basis.