WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-28-2009, 08:26 AM
AnnieSlim AnnieSlim is offline
Member
 
Join Date: Oct 2009
Posts: 2
On the fly

Hi,

I'm brand new to Vizard and would like to find out if i can do the following:

Insert multiple dot circles (like the example in the onthefly demo) and assign different directions of motion to each. Currently, I have made a display that contains 3 dot balls, in a vertical column; and I have worked out how to assign motion to each.

Now, I am trying to work out how i could substitute the following code:

#Change the position of a vertex
for m in range (0, NUM_DOTS):
x = random.random() - 0.5
y = random.random() - 0.5
z = random.random() - 0
length = math.sqrt(x*x + y*y + z*z)
x = x / length * RADIUS
y = y / length * RADIUS
z = z / length * RADIUS
So that I could make either, Horizontal or vertical motion (with all the dots moving within the circle).

Has anybody any suggestions regarding this? Thank you so much!!!

Annie x
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 08:46 PM.


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