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 |
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.
|
yes, I need only this. But how I can pull out those values from track data and apply them to the avatar?
|
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(): |
I have this code:
Quote:
|
Try removing the line where the avatar is linked to the Patriot data. That link is overriding the update function.
|
it's function :) thank you very much :)
|
All times are GMT -7. The time now is 08:21 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC