- Home /
The question is answered, right answer was accepted
Why is this happening? (gif attached)
So I have been trying to get moving platforms to work in 2d for forever now, and I just can't figure out why this is happening, the moving platforms adopt the player as their child, and all seems fine until the player moves. I tried it out with only the most basic stuff (the standard unity character and scripts), and the player still moves slower on the moving platforms than the normal speed. See the two gifs attached for comparison, they are in the same time/frame rate... (sorry for the flashing images)
Answer by Brachiosaurus · Jan 26, 2018 at 11:12 PM
If anyone still cares, the answer is actually the in the interpolation settings on the player's rigidbody. to anyone in the future who has this issue I recommend playing with that setting and making the platform set it to none or extrapolate, as well as adopt the player on collision.
Thank you, thank you thank you. I've had a similar kind of problem and that fixed it. This needs to be seen more.
Answer by lassade · Jan 21, 2018 at 08:39 PM
A few ideas that you can try:
Maybe there is some friction between the player and the platform, try check removing any physics material from the platform and the ground
When you say "standard unity character" you mean CharacterController try use SimpleMove instead of Move.
Try set the platform rigidbody to kinematic if not already
no luck with the first and last ideas, but I'd like to try the second one... I am using the platformerCharacter2D script, how does simple move work? perhaps I could change up the movement in the script... (thanks for the reply by the way, I'm desperate for any answers...)