WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to pick objects with joystick? (https://forum.worldviz.com/showthread.php?t=3432)

IsaDuarte 02-09-2011 08:38 AM

How to pick objects with joystick?
 
Hi all,

I am trying to use the joystick to navigate, however i am not able to pick objects with it as I am with the mouse, as here:

def pickChair():
object = viz.pick()
if object==chair1 or object==chair2:
if object.valid():
object.visible(viz.OFF)
vizact.onkeydown(' ', pickChair)


Does anyone know how to do this, but using the joystick?
Thank you in advance.

Best regards,
Isabel

Jeff 02-09-2011 08:35 PM

Picking works with the mouse but you could simulate mouse movements with the joystick and use picking or you could use joystick data in combination with the screenToWorld and viz.intersect commands to select an object. How do you want to control the pointer since you're navigating with the joystick?


All times are GMT -7. The time now is 04:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC