Avatar walk
I was wondering if you could help me with this problem. I think it's more of a mathematical problem but I think it applies to programming. I need for avatars to appear from all directions instead of just in front of the person participating in the experiment. I can't seem to figure out how to set up my x,y,z to have this occur. We want avatars to appear from all directions and have the user actually have to look around to see where they are coming from.
Here is what I have so far: Code:
for i in range(NUM_AVATARS): Code:
def mytimer(num): |
Hi,
Can you be more specific on where you want them to appear. Can you just select random coordinates within a certain range? |
I would like for them to appear within a radius of the subject. I want them to appear in front, to the left and right and behind the subject and certain intervals. They don't have to be random to the programmer, but appear random to the user. In other words, the order they appear is not important. So, basically, what I need to do is have them appear around the user coming in from all directions.
|
Hi,
The following code will compute a random position within a certain radius. Code:
#Get random direction |
Thanks! That really
|
Thanks! That really helped out
|
All times are GMT -7. The time now is 03:23 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC