WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-27-2010, 01:50 AM
znchb znchb is offline
Join Date: Sep 2008
Posts: 21
Question how to "spin/spinto" an rectangular around its center or edge?

Please see the program below, I build an rectangular using polygon, and I want to make it spin around its Center point or around its Edge Line of rectangular ?
Is there anyone would like to help me?
Thank you very much!

import viz
import vizact
bg = viz.add('tut_ground.wrl')
pos = bg.getPosition()
A = [pos[0]-2, pos[1]+8, pos[2]+10 ]
B = [pos[0]+2, pos[1]+8, pos[2]+10 ]
C = [pos[0]+2, pos[1]+4, pos[2]+10 ]
D = [pos[0]-2, pos[1]+4, pos[2]+10 ]
Rectangular = viz.endlayer()
#make it spin/spinto
#Rectangular.addAction(vizact.spinto(0,0,1, 180, 30))
Rectangular.addAction(vizact.spin(0,0,1, 90))
#---- How to make it spin around the Center of the rectangular ?-------
#---- or how to make it spin around the Edge Line of rectangular ? -----
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing pivot center midway through animation vijaykiran Vizard 2 10-19-2009 11:10 AM
Lightwave objects rotation problem hosier Vizard 6 02-13-2009 01:04 PM
Edge Blending in Vizard realvision Vizard 2 03-25-2008 10:32 AM
Positioning objects: center johannes2 Vizard 2 02-12-2008 03:56 AM
Center Viewport on Object (5DT Glove) bjgold Vizard 3 07-25-2006 04:22 PM

All times are GMT -7. The time now is 05:41 AM.

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