ConvertMouseLocationToWorldSpaceが変な値を示す

ConvertMouseLocationToWorldSpaceを用いて座標(x-100,y-100,z100)にあるアクタをクリックして座標を取得したのですが、

(x-1.367,y176.218,z830.000)という座標が出てきました。


(x-100,y-100,z100)という座標を示すためにはどうすればよいのでしょうか。またどうしてこのような値が表示されるのでしょうか。ご教授よろしくお願いいたします。

LocalPlayerControllerでの実装

You need to use world direction:

This projects the mouse space coordinates into the 3d world.

Note: I google translated your question, I hope I’m not missing the point.

thanks you for your answering

I made a suggested implementation to the PlayterController

It is slightly off the mouse cursor

PlayerController