![]() |
#13
|
|||
|
|||
Hi,
Can you try the following script and tell me what it prints out: Code:
import viz viz.go() ppt = viz.add('vizppt.dls') ppt.command(6,'',1,1,1) ppt.reset() viz.tracker() viz.eyeheight(1.8) def ontimer(num): print viz.get(viz.HEAD_POS)[1] viz.callback(viz.TIMER_EVENT,ontimer) viz.starttimer(0,0.1,viz.FOREVER) The average command will tell the ppt to average the position over the last N number of samples. The reset mask controls which axes are affected by the reset command. By default all axes should be affected by the reset, but there was a bug in the ppt plugin which caused the y axis to not be affected. |
|
|