WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Precision Position Tracker (PPT) (https://forum.worldviz.com/forumdisplay.php?f=9)
-   -   PPT movement in small area (https://forum.worldviz.com/showthread.php?t=1837)

durf 02-24-2009 08:45 AM

PPT movement in small area
 
Hi,

Im trying to move an object in a virtual world across a good distance. In the real world I only have a 10' x 10' room to work with. When I move the sensor about 4' the object in the virtual world doesnt move to far. Is there anyway to increase the movement in the virtual world with the amount of room I have to work with in the real world?

IE. I move 4 feet the object moves like a inch on the screen.

I want: If I move 4 feet the object moves like 6 inches on the screen.

Any thoughts or code?

Thanks

farshizzo 02-26-2009 12:02 PM

You will need to apply a scale factor to the incoming position values of the PPT within your client application. For example if you wanted to increase the movement by a factor of 5 you would use the following psuedo-code:
Code:

x,y,z = GetPPTPosition();
SetObjectPosition(x*5,y*5,z*5);



All times are GMT -7. The time now is 11:26 AM.

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