Landing on a rotating platform

Hi there,

I have a rotating platform (using Hinge Joint 2D) and I want my player to land on it and stick to it after landing. When needed, the player will need to leave the platform and I want it to use the current platform speed. (move towards wherever the platform is)

Things I have tried:

  1. When colliding, become the platform child and then keep moving with it (stick to it).
    The only problem is that when I leave the platform I won’t be accelerated by the platform’s speed. (If I leave the platform I will simply fall down)

  2. When colliding, I tried to add a new Hinge Joint 2D to the player and put the middle of the platform in the Anchor. The only problem is that I couldn’t calculate what to put in the “Connected Anchor”…

Please let me know if you have any ideas.

Thanks,
Lidan

2093905--137026--stick.png

Onward and upwards

Did you figure it out?
I was going to ask - isn’t there an inherit velocity code thing? :face_with_spiral_eyes:
Artist here. :wink: