![]() |
changing between avatar states
Hi, i have two problems i have bumped into :
1. i want the avatar to change between one state to another, wait a few seconds, and then return to its original state. how can this be done? avatar.state(newState) wait = vizact.waittime(3) avatar.addAction(wait) avatar.state(oldNum did not work. 2. another problem i have, that the 2 state differ in the orientation - one of the states is facing forward and the other is facing backwards. to solve this , i tried rotating the avatar just before changing the states, but this caused an animation bug - since now it actually rotates BEFORE the animation swapping takes place, which is not the result i had wanted ( to make things clear, what happens now is that the avatar first rotates instantly around, and then makes a strange twirl in order to face the right direction ). How can i solve this? Thanks! |
1) The easiest method would be to use a task. Here is some sample code:
Code:
import viz |
All times are GMT -7. The time now is 11:57 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC