Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically control rotation of a Cube



The same problem exists...I think. If I do greater than, then I would still be looking for the point the angle is equal..for example.

If my start angle is 90 and my stop angle is 180, the cube will rotate 90 degrees, but most likely the speed of the rotation will reset the cube to 90 degrees before I detect the cube completed its rotation.

Is there a way of having a interpolation start again if you set the loop mode to none? This would be the perfect solution, since it would stop after rotating to the stop value, and then I could change the start and stop angles and restart the interpolation.

Ben

On Oct 25, 2005, at 8:13 PM, Pierre-Olivier Latour wrote:

I have the interpolation patch/custom timebase/stop watch working correctly; however, the starting and stopping of the rotation is not reliable because determining wether or not the output of the interpolation is equal to my stop rotation is difficult to grab. I have added a 1 degree tolerance; nonetheless this is not consistent either.

Any ideas on how to get precise control over when to start/stop the rotation based on the current/stop angles?


Can't you use a "greater than" comparison instead of an "equal with tolerance"?


________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Architect                Graphics & Imaging Team



_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Programmatically control rotation of a Cube (From: Ben Dunton <email@hidden>)
 >Re: Programmatically control rotation of a Cube (From: Pierre-Olivier Latour <email@hidden>)
 >Re: Programmatically control rotation of a Cube (From: Benjamin Dunton <email@hidden>)
 >Re: Programmatically control rotation of a Cube (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.