WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-19-2007, 03:03 AM
kazo11 kazo11 is offline
Member
 
Join Date: Mar 2007
Posts: 2
spin around axis object

I have 5 objects

D1,...D5

D1 spin around own z axis of 45
and D2....D5 have spin around D1 z axis

d1.spin (0,0,1,45,2)
d2.spin (0,0,1,45,?)
d3.spin (0,0,1,45,?)
d4.spin (0,0,1,45,?)
d5.spin (0,0,1,45,?)
Reply With Quote
  #2  
Old 04-19-2007, 03:46 AM
kazo11 kazo11 is offline
Member
 
Join Date: Mar 2007
Posts: 2
Cool

Quote:
Originally Posted by kazo11 View Post
I have 5 objects

D1,...D5

D1 spin around own z axis of 45
and D2....D5 have spin around D1 z axis

d1.spin (0,0,1,45,2)
d2.spin (0,0,1,45,?)
d3.spin (0,0,1,45,?)
d4.spin (0,0,1,45,?)
d5.spin (0,0,1,45,?)
Can you help me???
Reply With Quote
  #3  
Old 04-19-2007, 09:48 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you want the other objects to spin relative to D1, then you should add those objects as children of D1. For example:
Code:
d1 = viz.add('mymodel.osg')
d2 = viz.add('mymodel.osg',parent=d1)
.
.
d5 = viz.add('mymodel.osg',parent=d1)


d1.spin(0,1,0,45)

#These objects will spin around d1 z-axis
d2.spin(0,0,1,45)
.
.
d5.spin(0,0,1,45)
Reply With Quote
Reply

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 07:47 AM.


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