Get Screen Location to World Space
Can anyone tell me exactly how the 'Get Screen Location to World Space' node works?
Been messing around with it and I can't seem to get any coherent values out from the world location output pin. No matter what numbers I put into the Screen X and Screen Y input pins, it always returns 10.
I presumed that if I put an X value between 0 and the max pixel size, it would return me that value in world coordinates, that doesn't seem to be the case.
asked Jun 12 '14 at 09:50 PM in Blueprint Scripting
What kind of setup are you using to get/print out your World Location?
If you think of it in terms of using a mouse to click a location on the screen or using your finger to touch a screen, a 2D location is returned, which could be passed into your Screen X and Screen Y. This function then converts that XY pair into a 3D World Location, which you can use as your starting location for a Line Trace, and a World Direction, which you would use with a magnitude (basically, a multiplier) to figure out how far you want to draw your line trace to see what you would hit under that screen location.
Hope that helps--let us know if need any more information about this particular functionality.
answered Jun 12 '14 at 10:54 PM
Steve Allison STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here