WorldViz User Forum spinto
 Register FAQ Search Today's Posts Mark Forums Read

#1
04-09-2004, 03:33 PM
 Zafer Member Join Date: Jan 2004 Location: maryland Posts: 7
spinto

Dear All,
I am a beginner with Vizard. I want to spin an object 350 degrees using the spinTo command. For example: cube.spinto(0,0,1,350,10). However, it doesn't work for angles that are more than 180 degrees. Could anyone help me out?
Many Thanks...
Zafer
#2
04-09-2004, 03:43 PM
 farshizzo 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.

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements Vizard Precision Position Tracker (PPT) Plug-in development

All times are GMT -7. The time now is 05:50 PM.