- Home /
Standing on player to follow his movement,Follow movement when standing on moving platform/player
Hi,
As in the titlte i have multiple characters that the player can control and would like when a first character stand on another, to follow his movement when selecting the second (to behave like in thomas was alone).
I can't seem to find a way to do it as all my characters have a rigidbody, so making them child from one to another is not possible.
Does someone have an idea how to do it or should i try to work without rigidbody to make it work, even if i prefer not to.
Answer by Cornelis-de-Jager · Dec 17, 2019 at 10:28 PM
Rigid body is fine. But put a condition that when the player is ontop of the player or lands on a player that the rigid body is set to kenematic and that they now follow the other player.
Actually i just found my solution, yours is actually fine and work but when the player on top is kinematic, he doesn't respond to physics, so when the player on bottom jump it work but don't look "natural".
Ins$$anonymous$$d i just get the reference on the bottom player and when the player on top isn't active (when i control another character) i just make him follow his movement.
Thanks anyway your solution may work better for other case, i'll remember it !