I want to have an object match the location of the cursor on the screen (in the way that if I hid the cursor, the object would act as a visual stand in for it).
I am used to the ‘object.worldPosition = mouse.hitPosition’ python script method that works like a charm in the BGE, but I can’t quite figure out how to duplicate the effect in Armory.
The way I am approaching this is:
But the second the mouse location changes, the object disappears. I’ve also tried splitting up the XYZ coordinates and playing with keeping two of the mouse coordinates while setting the third coordinate tozero, but to no avail.
When I print the location of the object and the cursor, they are the same… so I think there is a mismatch of how I interpret the screen space vs the world space. Any tips?