Jump to content
Search Community

Recommended Posts

Posted

Hi guys !

Is that possible to couple those two plugins (Physics2d & MothionPathPlugin) to create a kind of "maze" what I want is that the svg circle fall and stop at the end of the path ?

i don't see this anywhere :3 

thk's

See the Pen JjKjgXL by bable (@bable) on CodePen.

Posted

Hey Greenpig and welcome to the GreenSock forums.

 

How are you picturing these two being paired together? If the MotionPath has control over the dot then the physics plugin won't be of much help...

 

What do you mean "fall and stop at the end of the path"? 

Posted

thank's ! :D

So i want to create this : 

first step

image.png.b8606ca94e1699a31f16fc88b4931f9a.png
 

rotate the path 

 

second step


image.png.03e684023cfbcac13bbbc2f4db1950ed.png

rotate again

third step :

 
image.png.e1565091aa991e06c90a0c04615bd838.png


So what i want to do is to allow my circle to fall but following the path

thank's for hellping me :D 


 

Posted

To do that sort of thing I would break your path into a smaller path for each line segment. Then I would create an animation for each segment that:

  • Rotates the entire group of segments to where "down" appears the direction the ball should go.
  • Animates the circle from the top to the bottom, using whatever easing or physics-y animation you want to use (maybe with a little bouncing at the end, that would be fun).

Then sequence all of those in a timeline.

Posted

Niccce ! thanks soo much ! :D 

 

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