You sent me the simulated treadmill .. i'm wondering what's the unit of speed is so I can adjust with ours
TREADMILL_SPEED = .05
viz.add('sky_day.osgb')
# Add ground model 20 times
for i in range (20):
viz.addChild('ground_grass.osgb', cache = viz.CACHE_CLONE, pos = [0,0.01,i+25])
groupTracker = vizconnect.getTracker('treadmill_node').getRaw()
def updateGroup():
groupTracker.setPosition([0,0,TREADMILL_SPEED],viz.REL_LOCAL)
vizact.onupdate(0,updateGroup)
|