WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-09-2011, 08:38 AM
IsaDuarte IsaDuarte is offline
Member
 
Join Date: Feb 2011
Posts: 1
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
Reply With Quote
  #2  
Old 02-09-2011, 08:35 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Semi-circle array containing target and distractor objects ptjt255 Vizard 3 08-04-2009 03:09 AM
writing joystick position to a data file Saz Vizard 3 12-17-2008 05:18 AM
Pick porblem with arrays shivanangel Vizard 3 08-27-2007 10:10 AM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM
Facetracking and Immersion Joystick Vygreif Vizard 1 01-25-2006 10:56 AM


All times are GMT -7. The time now is 12:21 PM.


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