Jump to content
Search Community

Reflections and Physics

temeraire test
Moderator Tag

Recommended Posts

Hi,

 

I've got to do something like this:

 

http://www.defabiodesign.com/clients/po ... onoma.html

 

It looks to me like the trickiest part is coordinating the movement of the reflections. Does anyone have any thoughts on how to accomplish this using greensock?

 

It looks like physics2D will help with the other tricky part, which is the gravity of the movement.

 

Thanks!

Link to comment
Share on other sites

It seems like a fairly straight-forward animation. Once you figure out the timing for one bag and its reflection, TimelineLite will be great for chaining all the bag animations together.

 

It appears (although its hard to tell) that the bags are vertically compressing a bit when they hit the ground. Other than that you probably could just use a Bounce.easeOut ease on the bag and the reflection.

 

There isn't anything unique to GreenSock that is going to particularly handle duplicating the animation for the reflection. You could possibly use an onUpdate callback (in the tween that is animating the bag) to calculate the position of the reflection. This could prevent you from writing 2 tweens. An example of 2 objects being controlled by 1 tween can be seen here:

 

http://www.snorkl.tv/dev/scrollTween/

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