View Single Post
Old 02-28-2006, 01:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

Ok, that makes sense now. When using the screentoworld command you need to account for the stereo mode. So if you are using the mouse with the left eye, then simply multiply the x component of the mouse position by 2.
pos = viz.mousepos()
bulletvector = viz.screentoworld(pos[0]*2,pos[1])
Reply With Quote