- Home /
Prevent Player to push Rigidbody
Hi,
I got a moving platform with a rigidbody attached. The player can control the platform, so it is important that the platform can collide with other objects. The Player got a characterController Component attached and is moved via simple move(no rigidbody attached to the player). But when I want to walk around with my player on the platform while she is moving, the player pushes the platform away, because the platform "collides" with the player, who's standing on it. How can i prevent the player from doing so, so that the player can still move around on the platform but does not have a physical effect on it? I already tried to parent the player to the platform, but that doesn't make it better.
You have a couple of options. 1) if the player doesnt control the platform while on it then you could turn the is$$anonymous$$inematic on and off based on when the character is controlling the platform.
2) you could create two gameobjects one the can collide with the player and one that can't. Then in the physic settings create layers that collide only with layers you want to collide.
If this doesnt take care of it or you need more explanation let me know.
Your answer
Follow this Question
Related Questions
Something on a moving platform 2 Answers
movement inside a train problem 1 Answer
Rigidbody on a platform 2 Answers
Parenting a player to a rigidbody platform 0 Answers
Moving this object? 2 Answers