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



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?

Thanks,

Ben

On Oct 25, 2005, at 10:32 AM, Pierre-Olivier Latour wrote:

Another idea I had was to set the "Repeat Mode" of the interpolation
patch to "None"; however, it seems once the interpolation's value
equals the stop value, you can't "restart" the interpolation, e.g.
going from start/stop values of 90/180 to 180/270, and the rotation
starting again.


Using an interpolation patch should be the best solution combined with a custom timebase:
http://developer.apple.com/qa/qa2005/qa1427.html


Then you use a Stop Watch to drive the timebase


________________________________________________________ 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>)



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.