WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   PPT movement in small area using vizard 3.0 (https://forum.worldviz.com/showthread.php?t=1838)

durf 02-24-2009 08:46 AM

PPT movement in small area using vizard 3.0
 
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

Jeff 02-24-2009 09:15 AM

You can apply a scale factor on your position data. This will apply a scale factor of 2 for x,y, and z using the link of the sensor and object

Code:

link.postScale([2,2,2],target=viz.LINK_POS_OP)

durf 02-24-2009 09:25 AM

I assume that if I have a link already:

ballLink = viz.link(ppt, ball)

I would put that line that you sent after it.

Do I set it equal to something or just to ballLink?

durf 02-24-2009 09:34 AM

Nevermind I got it!!!!!!!!!!!!!!!!


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

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