What is the best way to make Object sticky (adaptive gravity) ?
Hello !
I was looking for a way to make a mob sticky like on the Hollow Knight screenshot, it should just walk normally and at ledge rotate while changing his gravity to the center of the platform (I'm working on a 2D platformer). Do you know if that's possible ? I could change the gravity when it falls but I doubt it would be a good idea... I don't know if there is another way, like setting a gravity point on the platform or something else.
Thank you in advance !
Answer by Lahol · 3 days ago
Ok ! so it worked giving 0 gravity and changing the velocity (directed to the platform) and rotating it when it's falling with a Raycast2D (under it).
Your answer
Follow this Question
Related Questions
How To Make my Player Glide in 2d platformer 3 Answers
How to make a character float up in a 2D game 0 Answers
Please help with infinite gravity swapping problem 0 Answers
Having trouble with 2D Jumping 0 Answers
2d get aim with keyboard and throw ball,2D Get Aim and Throw Something in that direction 0 Answers