Jump to content
Search Community

Placing images along a bezier

clipclicmusic test
Moderator Tag

Recommended Posts

Hi Jack

 

I just used this

var curveWidth = 300
var widthToUse = 200 //(this is actually variable and could be anything from 0 to 280)
for (i=0; i	{
var myTimeline:TimelineMax = new TimelineMax();
		myTimeline.append(TweenMax.to(bitmapArray[i], 1, {bezierThrough:[{x:curveWidth/2, y:-curveWidth/8}, {x:curveWidth, y:0}], orientToBezier:true, ease:Linear.easeNone}));
		myTimeline.gotoAndStop(Number(bitmapXArray[i]/widthToUse) );
}

To place objects in my bitmapArray along a bezier curve without the bother of working anything out myself !

 

However, I need to know the length of the curve in order to center then all

Any clues as to how I can get the length of that bezier curve ?

 

Thx

 

Jason

Link to comment
Share on other sites

Hi Jack

 

Thanks for the answer. I Googled before posting, and it looked so complex that I wrote here hoping there was some hidden function/value in your code I could use.

In the end, I am using an approximation. The exact length calculation is completely bonkers !

 

Thanks

 

Jason

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.
×
×
  • Create New...