Page 1 of 1

Distribute Layers on a spiral

Posted: May 18th, 2008, 1:18 pm
by dogma
Hi all,
this is my first message here and first approach to english forum, therefore forgive me some error, please!
I’d like to know how I can make a card movement in a spiral path as in a video that I’ve seen here
http://www.lobo.cx/
It’s the 6th video “stone of the kingdom” at 00.56 minutes.
Thanks a lot!

Re: Distribute Layers on a spiral

Posted: May 20th, 2008, 6:49 am
by lloydalvarez
Hey Dogma,

You can make a layer move in a spiral by moving x on a sine wave, y on a cosine wave and z in time:

Code: Select all

x=Math.sin(time*10)*20;
y=Math.cos(time*10)*20;
z=time*100;
[x,y,z]

You can adjust the values are you see fit. In x and y the value that is multiplied * time is the frequency and the second value is amplitude.

-Lloyd

Re: Distribute Layers on a spiral

Posted: May 21st, 2008, 5:34 am
by Atomic
To simulate what is in the video you mention, remember to move the layer's achor point to the bottom of the card.

Re: Distribute Layers on a spiral

Posted: May 21st, 2008, 5:56 pm
by dogma
Whoaaa! ...it works!!!
but the rotation of layers and the animation of the other cards seem difficult to perform..
mmm.. I'll make some tests in these days
every other information is pleasant
Thank you!! Hvala lepa