Na2kaze
(Na2kaze)
1
ConvertMouseLocationToWorldSpaceを用いて座標(x-100,y-100,z100)にあるアクタをクリックして座標を取得したのですが、
(x-1.367,y176.218,z830.000)という座標が出てきました。
(x-100,y-100,z100)という座標を示すためにはどうすればよいのでしょうか。またどうしてこのような値が表示されるのでしょうか。ご教授よろしくお願いいたします。
LocalPlayerControllerでの実装
Everynone
(Everynone)
2
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.
Na2kaze
(Na2kaze)
3
thanks you for your answering
I made a suggested implementation to the PlayterController
It is slightly off the mouse cursor
PlayerController