WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-25-2014, 04:20 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
I am not sure what you are trying to do here. What do you mean by the pre-position of your haptic device? Do you mean the starting position of your haptic device? If so, then you should get the starting position once, outside of your timer loop. It would also be more helpful to know what you're trying to accomplish in general.

You can also try to change vizact.ontimer(0,geposition) to vizact.ontimer(1,getposition). Then the function would only be called every second, so changes of the position of your haptic device would be easier to detect. Finally, does the position of your haptic device gets registered properly? I.e. if you put your haptic device in a certain position, run the code, then move the haptic device and run the code again, does that change the value that you get?
Reply With Quote
 


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


All times are GMT -7. The time now is 06:15 AM.


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