PDA

View Full Version : PPT movement in small area


durf
02-24-2009, 09:45 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

farshizzo
02-26-2009, 01: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:x,y,z = GetPPTPosition();
SetObjectPosition(x*5,y*5,z*5);