View Single Post
  #1  
Old 05-05-2008, 05:17 AM
joeymax joeymax is offline
Member
 
Join Date: Apr 2007
Location: England
Posts: 11
teleport users location

Hi there,

Is there a way to teleport your location to a different part of your scene at the touch of a button:

For example…
Code:
theview = viz.get(viz.MAIN_VIEWPOINT)
theview.translate(0,5,0)

POSITION = 0

def mytimer(num):
	global POSITION
	if POSITION == 1:	
		theview.translate(1,0,1)

	if viz.iskeydown('e'):
		POSITION = 1
..now I know this code doesn’t really work, but hopefully you can see what ive tried to do.

Any help would be much appreciated
Reply With Quote