View Single Post
  #8  
Old 05-01-2017, 10:41 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The following code allows you to specify the speed in meters per second:

Code:
# Speed in meters per second
SPEED = 1

def updateGroup():
	# Get the elapsed time since the previous frame and multiply that against the speed in m/s
	groupTracker.setPosition([0,0,SPEED * viz.getFrameElapsed()],viz.REL_LOCAL)

vizact.onupdate(0,updateGroup)
Reply With Quote