Jump to content
GreenSock

Gary Griswold

3D Rotation around Center

Recommended Posts

I have found some code on SnorkleTV that performed a 3D Flip of a page, and I was trying to use it.  But in my use of it the object is being rotated from the left margin, but what I need is for it to be rotated by the x axis center of the object.

 

The following is the code that I am using for the first step in the Flip.

 

var flipSpeed:Number = 0.5;

var tl:TimelineMax = new TimelineMax({paused:true});
tl.append(TweenMax.to(currentView, flipSpeed, {rotationY:90, visible:false, ease:Linear.easeNone}))
 
The example given on SnorkleTV was extraordinary.  I hope to get it right.
 
Gary
Link to comment
Share on other sites

Hi Gary,

 

Not sure exactly what tutorial you are referring to (its been awhile) but usually I would just make sure my registration point is in the center of clip I want to rotate.

Not really sure how to do it in pure AS3. Our transformAroundCenter plugin only works for 2D transformations. 

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.
×