PDA

View Full Version : PPT movement in small area using vizard 3.0


durf
02-24-2009, 08:46 AM
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

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!!!!!!!!!!!!!!!!