WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-17-2013, 02:58 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
Okay, so I have managed to fix this and perhaps my question could have been asked in a much simpler manner! Forgive me as I was obviously struggling to communicate and operate yesterday (through lack of coffee or whatever!)

So, the problem I was seeing was that I was setting the euler or calling lookAt on the avatar but when I called another function, using yield, the avatar would simply go back to the direction is was facing before.

By running an action and getting the avatar to turn to the direction, I was able to solve this problem. I am guessing that within the main vizard update loop, the avatar actions were still running, and were therefore turning the avatar to the old position. This meant every time I reset the euler and returned control back to Vizard, the updated was "lost". The reason I did not suspect this initially was because when I wanted to "get rid of the avatar" I was only turning the visibility of the avatar to False, setting the state to standing (and it had already reached it's goal location so was no longer travelling). What I wasn't doing was stopping the actions from being run so the turn() function was constantly being called.

Complete oversight on my part but at least now solved. Sorry for not explaining it properly!

Last edited by chris2307; 12-17-2013 at 03:01 AM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
avatar walkto interrupt Meneer_Aart Vizard 6 04-09-2013 02:41 PM
lookat and threads status Philippe Vizard 3 08-12-2010 03:01 AM
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


All times are GMT -7. The time now is 08:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC