Jump to content


Greensock 2D physics

Go to solution Solved by GreenSock,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi Greensock lovers,


How can i achieve this () with Greensock 2Dphysics? And as extra I want to have a cursor hover function. Basically when you hover with your cursor the "object" should be pushed somehow.








See the Pen amyyyw by labdev (@labdev) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @fatih. GSAP's Physics2DPlugin isn't for that type of effect. It's not intended to be a full-blown physics engine with collision detection, world dynamics, interplay between objects, etc. That'd make it at least 10x its size and wouldn't be at all appropriate inside GSAP (since it's built around animations that have a specific duration and can be placed in timelines, etc.). Sorry. It sounds like you'd be best served by finding a good full-blown physics engine. 

  • Like 1
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.