Avatar w/ hat cannot look at viewpoint
Hello, I was trying a combination of scripts from tutorials... the first one was the one to bind the hat to an avatar, and the second was to make the avatar look at the viewpoint. My problem is, I can't get them to work at the same time for some reason. :/
Here is the hat code I am using: Code:
patient=viz.add('vcc_male.cfg') Code:
#Get a handle to the Neck bone |
It works for me. What exactly is the problem you are experiencing?
|
Hmm, that's funny... On my level I have made, the patient does not do that. I thought for sure it was the hat that screwed up. Sorry, I'll keep looking into it and come here if I figure out what the problem really is :)
|
I've found out that there's another code conflicting with the avatar's looking patterns for some reason... It's the callback for when I put the arrow following the player's movement in the Bird's Eye view.
Note: The map I'm using for this thing is room.wrl, so the Bird's Eye is tweaked so that it is specifically for that level. Code:
# Create a new window in the upper right corner |
You are using two different timer callbacks. So the last one that is being registered is overwriting the first one. You are better off using the vizact.ontimer function to register multiple timer events that do not conflict with each other. Your code would look something like this:
Code:
def ArrowTimer(): |
Thanks farshizzo, it works like a charm now! :D
|
All times are GMT -7. The time now is 08:24 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC