Thread: spinto
View Single Post
  #2  
Old 04-09-2004, 03:43 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Zafer,

The spinto function calculates the smallest rotation needed to spin from the current rotation to the desired rotation. A 350 degree rotation on the y-axis is equal to a -10 degree rotation on the y-axis, so the spinto function only rotates -10 degrees. If you want to force Vizard to spin the object the full 350 degrees then use the spin command:
Code:
cube.spin(0,1,0,10,35)
This simply spins the cube along the y axis at 10 degrees/second for 35 seconds.
Reply With Quote