I have cannon and aim dot.
Aim dot should be even exactly in mouse cursor position. Cannon should look to aim.
I don't know how to have aim right under mouse cursor. I don't know how to rotate cannon to look at aim.
I have read some others question / answers about Raycast to object make looking on mouse position.
But i cannot make it works.
edit(moved from "answer")
NOw i have this, and this works, but not like i want, i need aim to be right under mouse. Don't understand how to use World coordinates of mouse, when i try my aim gets right to camera coordinates. When i try viewport coordinates ScreenToViewportPoint, my aim not under mouse too.
Please help me (((