I have a character (that has character controller) and a ground (that has animations to move up and down and left and right)
I want to when character is on ground, move with ground (and go up and … With ground)
How can i do that?
I have a character (that has character controller) and a ground (that has animations to move up and down and left and right)
I want to when character is on ground, move with ground (and go up and … With ground)
How can i do that?
First detect if the character is touching the ground. I would personally do this with a raycast being drawn from your character downwards.
Then, if the character is touching the moving ground (you could tag the specific GameObject) then add the Vector3 transform which is occurring to the platform to the character.
If you would like a more detailed answer please let me know and I can write up an example when I have time.