![]() |
Walking to many directions.
Hi every one, my avatar will walk to unknown distances and directions. I tried to rotate her while she is walking but the code does not response. I am still plying with the following code.
HTML Code:
import viz Any help would be appreciated. Thanks, |
If you want two actions to occur simultaneously you can add them to different pools. If you don't specify the pool the default is 0 and it will be added to the end of the object's queue or waiting list. This adds rotate to pool 1
Code:
avatar.addAction(rotate, pool = 1) |
Oh, thanks Jeff!
But when the avatar stopped for awhile, and then she wants to continue with same direction the code takes her to the other direction (z-axis). I have tried to increment x-axis but wasn’t practically. As well as I tried to make the mainview to follow the avatar, when this has been done, the key function does not work probably HTML Code:
import viz |
If you want to link the avatar to the viewpoint, you could use keyboard navigation like this to move the viewpoint and avatar forward and turn side to side.
Code:
import viz |
That is brilliant, but still there is small problem, which is the speed. Once the avatar’s speed has been increased, the user will realize that the mainview is moving not the avatar. So how can I handle this issue?
Please just add this line to your code and then you will see what will happen: HTML Code:
avatar.speed(5) |
This creates a KeyboardCamera object. Use the sensitivity method to scale the movement and turning speeds. You can increase the speed of the avatar animation when the camera speed increases.
Code:
import viz |
it works! thanks Jeff for your help.
|
All times are GMT -7. The time now is 09:12 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC