WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-30-2012, 02:59 PM
Lynnifer Lynnifer is offline
Member
 
Join Date: Feb 2012
Posts: 4
Question Help with using a pointer to hit a sensor.

I am working on updating a program for the use in a new experiment for my lab, and my knowledge of both Python and Vizard is still limited. I have created a pointer that is based on the user's hand position (a "+" symbol pointer) as read by the magnetic tracking system Flock of Birds. A sensor on the head controls the movement of the entire background (moving the background in space) and the movement of the sensor on the hand controls the pointer. In the original program, the movement of the head was used in the program to designate whether the targets on the background where hit or not ( viz.get(viz.HEAD_YAW) and viz.get(viz.HEAD_PITCH) were assigned to the names currentYaw and currentPitch and then fed into the equation to see if the target was hit).

What I need is to be able to use the pointer's location to say whether the target is hit or not. I cannot figure out how to do so. For experimental purposes, I only need the pointer to be in the correct position on the x and y axis, the z axis for the hand does not matter to the experimental rationale. I am attaching a text document with the program. Any advice/suggestions on how I might accomplish this would be greatly appreciated. Thank you.
Attached Files
File Type: txt Lynn_LabProgramforCheck.txt (21.5 KB, 417 views)
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
Creating a Vizard Sensor Plugin farshizzo Plug-in development 24 04-18-2013 04:45 AM
sensor or not sensor? nige777 Vizard 0 03-29-2011 04:03 AM
Laser Pointer Question (Again) Elittdogg Vizard 5 09-08-2009 12:02 PM
wiimote and sensor bar masaki Vizard 1 03-06-2008 03:07 PM
Multiple Copies of same sensor plugin RedSpikeyThing Plug-in development 2 02-12-2008 02:10 PM


All times are GMT -7. The time now is 08:07 PM.


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