How to fix player's position on balancing platform?

Godot Version

Godot 4.5 dev 4

Question

How to fix player’s position on balancing platform ?

Hi everyone. I’m trying to replicate the behaviour of Mario when he idles on a balancing platform. As you can see in the video, Mario stands on fixed point at the top of the platform no matter what its rotation is.

And this is what I have right now (it is the same behaviour no matter what CollisionShape2D I set for my player):

I have tried to do this in Godot for two weeks now, but i cannot figure out how to achieve this result. My character is a CharacterBody2D, and my platform is a StaticBody2D (the result wasn’t that different with a AnimatableBody2D), and it is becoming so frustrating for me, as this is an important mechanic in my game…

Can you help me please :folded_hands: ?

I find the problem interesting, but there’s no way I’m going to build this from scratch, and I kind of doubt many others will either. Can you provide a complete project with this problem?

Sorry for the late reply.

This is the link for the minimal reproduction project, as I failed uploading it on this forum :
Github - Rotating-Platform-MRP

Sorry for the late reply.

This is the link for the minimal reproduction project, as I failed uploading it on this forum :
Github - Rotating-Platform-MRP

Edit: I forgot to reply to you directly