In this chapter, we’ll implement a moving, floating platform that travels back and forth between two locations, and we’ll implement a simple system that allows the Player to stand on these platforms and ride them as they move. This will be done by making the platform become the parent of the Player when the Player lands on the platform.
We’ll also allow individual objects controlled by a Rigidbody to stick to the platform as it moves.
Platform Movement
First, we need a script that makes a platform move back ...