How to pause the Vizard simulation?
Hi guys,
I have a simple problem: I just want the whole Vizard simulation to pause for a few seconds, and afterwards continue from where it stopped right before. During that pause, no navigation through the simulation must be allowed (that is, MainView mustn't change). So I tried: Code:
import time Of course this is not what I wanted, so I tried it another way: Code:
viz.mouse( viz.OFF ) Now I wonder if there is any passably simple solution for this problem? |
you can try using viz.mouseScale() and set the scale factor for the navigation to 0 and then switch it back to 1 when you want the simulation to move again.
For example: Code:
def goStopTask(): Best, Masaki |
Thanks, masaki, for your idea!
Unfortunatelly, it leads exactly to the same result as the mouse-on-mouse-off approach. My code is something like this: Code:
import viz Maybe the problem is due to the structure of my code, however, I could not find an explanation so far... So any help would be appreciated! :) |
Though I still have no idea how to avoid this annoying "drift effect", I could at least figure out that the player does NOT -as previously assumed- drift with the last given speed and direction input, but rather always drifts straight ahead and with always the same speed.
So maybe this effect is not due to my code, but could also be caused by a bug in the viztask module...? |
The code that masaki posted stops the view from moving and there is no drifting after the mouse movement is scaled back to normal. So you must have something else happening in your code.
|
All times are GMT -7. The time now is 12:25 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC