WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 02-12-2007, 10:38 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Simplicity is a virtue. This works for me.

Code:
from viz import *

go()

room = add('gallery.ive')

pos = add('vizppt.dls')
ori = add('intersense.dls')
tracker()

def onKeyDown(key):
	
	if key == 'r':
		pos.reset()
		ori.reset()
		
	if key == '1':
		eyeheight(1.8)
	if key == '2':
		eyeheight(0)
	if key == '3':
		eyeheight(4)
		
callback(KEYDOWN_EVENT,onKeyDown)
Initially the eyeheight comes out too high for some reason, but if
you hit 'r' it makes it 1.8m. Also, you can change the eyeheight to
whatever you want using the viz.eyeheight(height) command.
After that hitting 'r' will reset the eyeheight to whatever 'height' is.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC