I’m looking for a solution to this problem on the internet for a few days now and I can’t find anything about it. I have a 2d engine all programmed and functional, with normalization of angles on ramps, but when I am under rotating surfaces, the result is this of the gif, the position of the player slides across the platform.
I would like to know if there is any form that I can use so that the position behaves in a way similar to what happens in the games of the New Super Mario bros series, where we are always on the same part of the surface of the platform without slipping.
note: I am using a system where the player becomes the child of an object that is always set in the platform position, done so that the player does not inherit the rotation of the platforms, as it is not the intention, the character’s z axis of rotation always it must be like 0. And I already tried to use friction to avoid slipping but they didn’t solve it.
I hope my question has become clear, if I need to I can answer something that has been confused. I already thank you very much who can help me.