ElgEditorScripting icon indicating copy to clipboard operation
ElgEditorScripting copied to clipboard

GetMousePositionWorld not working

Open ThousandsRT opened this issue 5 years ago • 2 comments

ThousandsRT avatar Apr 25 '20 19:04 ThousandsRT

Hi. I've deleted my previous comment because it was irrelevant with the source on the problem. Si here it is : I found a problem with the LineTrace ( in multiple nodes like GetMousePositionWorld ) and I suspect it comes from the level editor context object. If the level contains only small objects, everything works fine, no problem. But if the level contains a big or a huge object ( a big ground for exemple ) the returned position ( by the GetMouseWorldPosition ) is 0.0.0, until I dezoom enough to have the whole object visible, and then it will return correct world position. And If I have a big sphere for projecting a sky around my level, there is no way that the node works as expected.

ThousandsRT avatar Apr 26 '20 14:04 ThousandsRT

try to disable collision of your big sphere with sky. probably your are getting collision from this object.

DrUiDWidlo avatar Nov 23 '20 21:11 DrUiDWidlo