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 |
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) |
All times are GMT -7. The time now is 01:00 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC