Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Physics2d & MothionPathPlugin

Recommended Posts

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 


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

Link to comment
Share on other sites

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"? 

Link to comment
Share on other sites

thank's ! :D

So i want to create this : 

first step


rotate the path 


second step


rotate again

third step :


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

thank's for hellping me :D 


Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Hey @Greenpig


Check out this post too




Happy tweening ...


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.