Convert mouse location to world space issue

Hello everyone,
Here is my problem : I’m working on a RTS. When the camera is in top down it works perfectly, but when i mouve the camera on the Y axe, the impact point of the line trace is not exactly on the mouse cursor… I don’t know why !

The camera is rotating with a “Set control rotation”

Thanks for your help :slight_smile:

Sorry. Here is my code :

And in game the red cross is not on my cursor…

Perhaps upload the image again, something went wrong.

In this position only it works !


The mouse should be on the cross.
In this posittion it works !