Hello.
I am working on Level Building Mode in my “game”.
Now I have Build Mode Switcher:
http://s6.postimg.org/gvh58y7ox/screenshot_56.png
When Building Mode switched on, I want do draw wall with placing Static Mesh like in https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Blueprints_Advanced/1_2/index.html
I calculate my StartPos vector with blueprint:
http://s6.postimg.org/bzdih97jl/screenshot_58.png
and my EndPost vector blueprint:
http://s6.postimg.org/6ch5js50x/screenshot_59.png
After that I trying to calculate count wall needed to place:
http://s6.postimg.org/xbplsogvl/screenshot_60.png
And some debug info:
http://s6.postimg.org/exf2op4kx/screenshot_61.png
And show Mouse cursor script:
http://s6.postimg.org/b2bom4lf5/screenshot_62.png
Now I have got an issue with calculation of the mouse cursor position:
Left side of floor is X=0:
http://s6.postimg.org/6izg0m3jl/screenshot_64.png
But when I click in the game, X!= ~ 0:
http://s6.postimg.org/jbnk0jf5d/screenshot_69.png
And another error - width of the vertical mesh about 20-30 points but calculated mouse position shows ~100:
http://s6.postimg.org/fgk5xyvzl/screenshot_70.png
How to calculate mouse position more accurately?