WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-23-2011, 08:55 AM
miles miles is offline
Member
 
Join Date: Jan 2011
Posts: 21
It appears the only relevant lines are
Code:
			# Walk sensitivity is also applied as a scalar matrix transformation
			if self.walkSensitivityPre <= 0:
				self.link.postScale([self.walkSensitivity,1,self.walkSensitivity],viz.LINK_POS_OP)
			else:
				self.link.postScale([self.walkSensitivityPre,1,self.walkSensitivityPre],viz.LINK_POS_OP)
I've commented out all other matrix operations and the problem still occurs. Perhaps I am using the wrong operator. How would one go about scaling motion in the virtual environment? For instance, if I walked one meter in the real world, how could I walk 2m in the virtual world?
Reply With Quote
  #2  
Old 03-23-2011, 09:03 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You are using the <link>.postScale() command incorrectly. If you look at the docs, the target option is the third parameter, not the second. I recommend passing the value as a keyword argument:
Code:
self.link.postScale([self.walkSensitivity,1,self.walkSensitivity],target=viz.LINK_POS_OP)
Reply With Quote
Reply


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
Real environment with virtual objects do interact CRI Vizard 4 05-27-2010 12:05 PM
Open Position: Virtual Environment Programmer aarset Announcements 0 05-31-2009 07:23 AM
Question about input from virtual keyboard. yyang Vizard 4 12-23-2008 12:25 PM
Getting a mirror to work in any environment Frank Verberne Vizard 5 03-27-2008 08:21 AM
Human FOV and VIrtual FOV giancamati Vizard 0 12-14-2006 03:33 AM


All times are GMT -7. The time now is 06:00 PM.


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