5
\$\begingroup\$

Since I'm not a native speaker, it's hard to explain in english what I want to achieve, so I'm gonna use a couple of images... basically I want to make an interaction of this type:

enter image description here

in a 2D game, so it should be something like this (forgive me for the quality, but I'm not a designer as you can see :D):

enter image description here

What should I do? Currently I'm looking at 2D Physics Joints, but I'm not sure about which one is the most appropriate and how should I configure my objects... in my mind I think that the ledges should have a trigger collider that once the player jumps and enters in the collider area, a joint is dynamically attached (but which one and against which object... the player? The ledge? Both?)... how should I make the player swinging forward and backward once hooked to the ledge? I'm really confused :/

\$\endgroup\$
1

0

You must log in to answer this question.

Browse other questions tagged .