After an object (A) jumps onto a rotating object (B), we want (A) to rest on (B).

(The following English text was created by DeepL)
I am a beginner in game development.
When I make a game object (A) jump onto a spinning object (B), (A) cannot keep up with the rotation of (B) and slides off the top of (B). I want (A) to stay stationary on top of (B). (I want (A) to stay on top of (B).
I figured friction had something to do with it, but still could not do what I wanted.
Any solutions you can give me would be helpful to me.

Hi!
I think if you set the Colliders’ PhysicMaterial Static Friction & Dynamic Friction to 1, on both the capsule game object (A) and the spinning object (B), the capsule should stick to the spinning object.
However, this will probably make it hard to get the capsule to move again afterwards (it looks like you’re making a character controller).
You might want to have a look at some ready-made character controllers:
Starter Assets - ThirdPerson << Not sure if this handles moving platforms.
Invector Third Person Controller << Demo video shows it working with moving platforms

Thank you so much codebiscuits!
I very much appreciate what you have taught me!
However, in both (A) and (B) I set the “Dynamic Friction” and “Static Friction” to 1, but the results did not change.
If you know of any other solutions, please let me know.
However, I will consider using some ready-made character controllers.
I did not know this, so I appreciate you letting me know!

9531445--1345270--スクリーンショット 2023-12-15 21.57.11.png

1 Like