View Single Post
Mr Kidnapper
Senior Member
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 06-06-2012, 09:13 PM

If the position of the camera is static in the Z axis (Height), an easy way is that you can use the current mouse's position as a percentage of the window's width and height starting from the center, assuming the character is positioned at the center. You then manually figure out how much distance there is in meters on the XY axis to the edges of the window. There is no fancy trigonometry that you have to do.

This takes a little Jython scripting, however, because there is no Alice function to find the window's width and height. Finding my as well as Arty-FishL's worlds that use mouselock and mouse-based camera rotation should be a first step. You can use WinZip and Notepad++ to view the python files.

From what it sounds like, you want to click a position on the ground and move the character to that position.
Reply With Quote