Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
MDiddy

3d orbital circular motion tween

Recommended Posts

I'm trying to get an array of 4 images to all rotate in a 3d space around a center point. This seemed like it should be easy to me but I can't seem to create a tween for it. Can anyone provide a link or help me get started? Thanks!

Link to comment
Share on other sites

TweenProxy3D makes this pretty simple actually because it allows you to set a registration point for each object in 3D space dynamically. So you could set the registration points to be in the middle (they'd all share a common registration point), and then tween their rotationY property (or whatever). Or you could try arranging them in 3D space inside a container MovieClip and then just tween the rotationX/rotationY of that MovieClip. Just a few ideas off the top of my head.

 

TweenProxy3D is only for Flash Player 10 and later, and it comes with "Really Green" Club GreenSock memberships and higher. I've attached a demo. Sign up at http://blog.greensock.com/club/

Link to comment
Share on other sites

Thanks for the info. I signed up for the 'Really Green' membership a few months back so I had the class but never messed with it. Would you or anyone else have any links or reference sites to good FP10 3D examples or books. I'm starting to remember what scared me so much about 3D…the math. I can't even come up with an equation for the orbit path.

Link to comment
Share on other sites

ActionScript Animation by Keith Peters is awesome. There's one for AS2 and another for AS3. Highly recommended.

 

You don't really need to figure out how to do math for an orbit path or anything - using TweenProxy3D (or even without it), you can just offset the registration point in 3D and then tween the rotationY or rotationX property to make it orbit. In the example I posted, change the z position of the registration point and then tween one of those properties - you should see it orbit.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×