View Single Post
  #2  
Old 02-10-2009, 03:03 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
So it sounds like the ball just needs to be linked directly to the ppt and for the pillar you just want to negate the y coordinate. You could use the link.swapPos method for that

Code:
#create two links
ballLink = viz.link(ppt, ball)
pillarLink = viz.link(ppt, pillar)

#negate the y coordiante
pillarLink.swapPos([1,-2,3])
in the future you can use the code tags to preserve your indentation. Select your code and click on the # icon
Reply With Quote