#1
|
|||
|
|||
walking of avatar via patriot
Hi,
I want to set the avatar and sensor, that the sensor is on the place, when the calibration was, in the virtual place the avatar stands too and subsequently, into which the direction the sensor is moving, so in the virtual world avatar is moving in the same direction. But my avatar is always rotated around all axis. I use patriot. can you help me with this? thanks |
#2
|
|||
|
|||
Do you want the avatar to only move X-Z for position and yaw for orientation? If so, you'll have to pull out just those values from the tracker data and apply them to the avatar's position and orientation.
|
#3
|
|||
|
|||
yes, I need only this. But how I can pull out those values from track data and apply them to the avatar?
|
#4
|
|||
|
|||
Within a function that gets called every frame you can get the tracker data as lists and extract the values you want to use. Something like the following:
Code:
def updateAvatar(): pos=tracker.getPosition() ori=tracker.getEuler() avatar.setPosition([pos[0],0,pos[2]]) avatar.setEuler([ori[0],0,0]) vizact.onupdate(0,updateAvatar) |
#5
|
|||
|
|||
I have this code:
Quote:
|
#6
|
|||
|
|||
Try removing the line where the avatar is linked to the Patriot data. That link is overriding the update function.
|
#7
|
|||
|
|||
it's function thank you very much
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Avatar walking + camera free look | kovitch | Vizard | 2 | 08-08-2011 07:57 AM |
avatar walking over a sequence of points | IGoudt | Vizard | 1 | 10-16-2009 11:22 AM |
avatar automatically runs animation after fading into view | v-clizzin | Vizard | 1 | 10-14-2009 05:01 PM |
Looking through the eyes of an avatar | Frank Verberne | Vizard | 2 | 04-01-2008 05:52 AM |
How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM |