How to move both objects when my player is mounted in another moving object? (eg: Skate, Car, Bike)
I'm creating my first 2d Platformer and learned it all from a Tutorial. Now I'm trying to implement new ideas and I can't get a skate to work in the game.
Whenever my Player collide on top of the Skate I want to move the Skate with my Player on top.
I tried using the same approach I learned for moving platform, which is setting the Skate as the Player's Parent. When this happened I also changed the controls to apply velocity to the Skate and not the Player. It kinda works, but it's really messy as the player always fall off, specially when they are not moving in a straight line.
I thought about disabling the player's RidgidBody, but didn't find a way to do it. I'm thinking a solution would be disabling the player object and changing the skate sprite to look like a Player Mounted to the Skate, then also changing the skate collider size on the fly, but I'm hoping for an easier solution.
Your answer
Follow this Question
Related Questions
2d Moving Platforms 1 Answer
Character flickering on moving platform 3 Answers
Character on moving platform with Interpolation 1 Answer
Unity 5: 2D Platformer: Trigger/Collisions problem 0 Answers
Rigidbody (player) moves slower on moving platform 2 Answers