Hi, I try to make some program that could add on-the-fly objects by following the path of mouse movement.
I use code like this
Code:
PointBall = viz.add('ball.wrl')
PointBall.color(viz.RED)
PointBall.setPosition(e.x , e.y,2)
where variable "e" is obtained by left-button mouse event.
I also make PivotNavigate by mouse on, but disabled left-button function part.
The problem is: when I move the mouse on the screen, those generated objects do not follow the trajectory of the mouse cursor, there are some offset.
How can I neglect this, and if I zoom in or zoom out the screen, does this method still apply?
Thanks