WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-22-2010, 02:17 AM
shahramy shahramy is offline
Member
 
Join Date: Dec 2009
Posts: 41
First-person-shooter type control?

hi every body
how can I First-person-shooter type control?
changing orientation of an avatar with mouse(left or right turning) and move forward or backward with keyboard.
Reply With Quote
  #2  
Old 05-24-2010, 11:54 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can change the camera handler and link the avatar to the viewpoint:
Code:
import viz
viz.go()

ground = viz.add('tut_ground.wrl')

avatar = viz.add('vcc_male.cfg')
avatar.state(2)

link = viz.link(viz.MainView,avatar)
link.preTrans([0,-1.8,2])

import vizcam
viz.cam.setHandler(vizcam.FlyNavigate())
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camare control question(about separated eye view) atamasan Vizard 3 01-28-2010 06:22 PM
version control? billjarrold Vizard 1 01-26-2010 09:39 PM
adding more than 1 action for avatar animation slider control yak Vizard 0 07-21-2009 11:22 AM
Control of timers vizmaster Vizard 6 08-22-2008 09:36 AM
intersense: Failed to set control word on \\.\COM1 OueOue Precision Position Tracker (PPT) 2 01-18-2007 12:51 PM


All times are GMT -7. The time now is 07:19 AM.


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