- Home /
Stop player from pushing tilemap
How to stop player from pushing tilemap. First of all, I set the tilemap rigidbody to dynamic with zero gravity. I know that you have to put it on kinematic to avoid pushing. But the thing is, if I put the tilemap on kinematic, my player won't detect collision with the tilemap. So basically I want to check collision between player and tilemap but at the same time I don't want player to push the tilemap. Is there any other ways to solve this?
Answer by MUG806 · Feb 20, 2021 at 04:04 PM
Unless you are doing something really unusual then your tilemap probably doesnt want to ever move, so it shouldnt have a rigidbody on it at all. Remove the rigidbody from the tilemap and it cant be moved. The player can still collide with it if it has a collider, so long as the player has a rigidbody
Your answer
Follow this Question
Related Questions
Why my rigidbody2D not working when I switch it to dynamic? 0 Answers
Switching from kinematic to dynamic without stutter 0 Answers
How do I prevent a Kinematic Rigidbody2D from moving a Dynamic Rigidbody2D on Collision? 1 Answer
rotate 2d object without affecting the rigidbody ? 1 Answer
Rigidbody2D 0 Answers