What a drag?
What is viz.drag() supposed to do? When I run
duck = viz.add('duck.wrl') duck.translate(0,1.5,4) viz.grab(viz.Mouse,duck) the duck moves with the mouse but doesn't stay under the cursor as one might expect if it were being dragged. PS - Is Vizard compatible with Vista? |
I meant viz.grab()
|
The viz.grab() command is not meant to be used for dragging objects with the mouse. Look at the tutorial_grab.py script in the [Vizard30]\tutorial\link directory for an example. It's mostly used when you are doing some sort of hand tracking and you want to simulate grabbing an object.
|
viz.grab() with the mouse makes sense if the object you are grabbing is on the screen.
Code:
import viz |
All times are GMT -7. The time now is 06:17 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC