![]() |
|
#2
|
|||
|
|||
|
You could try using a viztracker.MouseTracker. Here's a simple example:
Code:
import viz
import viztracker
import vizact
viz.go()
gallery = viz.addChild('gallery.osgb')
ball = viz.addChild('soccerball.osgb')
#Move the object with mouse movements and mousewheel
mousetracker = viztracker.MouseTracker()
link = viz.link(mousetracker,ball)
#Disable the link and place the object with a mousepress
vizact.onmousedown(viz.MOUSEBUTTON_LEFT, link.disable)
viz.mouse(viz.OFF)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| World Transformations | c4am95 | Vizard | 4 | 11-09-2010 01:50 PM |
| why is time faster in my virtual world? | billjarrold | Vizard | 1 | 11-24-2009 06:33 PM |
| button in the world | guxmy01 | Vizard | 1 | 06-10-2008 05:37 PM |
| What are the options for making a movie of a Vizard world? | Karla | Vizard | 1 | 05-13-2008 11:56 AM |
| General Questions about Vizard: World Viz | dav | Vizard | 5 | 08-28-2006 04:44 PM |