![]() |
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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()) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Camare control question(about separated eye view) | atamasan | Vizard | 3 | 01-28-2010 07:22 PM |
version control? | billjarrold | Vizard | 1 | 01-26-2010 10:39 PM |
adding more than 1 action for avatar animation slider control | yak | Vizard | 0 | 07-21-2009 12:22 PM |
Control of timers | vizmaster | Vizard | 6 | 08-22-2008 10:36 AM |
intersense: Failed to set control word on \\.\COM1 | OueOue | Precision Position Tracker (PPT) | 2 | 01-18-2007 01:51 PM |