Hi!
I want to set up the moving platform with raycast, so it change direction when it hit an obstacle, instead of using iTween, DoTween, move towards, etc. Then I use Set Velocity which requires Rigidbody. The problem is, when I parent the player to a moving platform with Rigidbody, the player slides off the platform. I just wonder, is it a way to do this, so the player doesn't slide off?
The reason I want to do this, is because I just want to place a moving platform in the scene without changing the value of destination.