#1
|
|||
|
|||
locate a certain point in the scene 3D
Is it possible to locate a certain point in the scene by clicking on it with the mouse?
I would like to use this to position my objects (e.g. I click on a certain position with my mouse and get the position printed) then I cann translate my object there... Code:
def mouse... if button == viz.MOUSEBUTTON_RIGHT: line = viz.screentoworld(viz.mousepos()) begin = line[:3] end = line[3:] viz.startlayer(viz.LINE_LOOP) viz.vertex(begin) viz.vertex(end) cube = viz.endlayer() print end P.S. out of certain reasons I don't want to use the stage. |
|
|