how do i make an object with a kinematic rigidbody collide.

Hi, I am making a 2D top down shooter game and im trying to make my player not go through some walls.
My player has a Kinematic rigidbody2D and I need it to be kinematic otherwise the gun pushes the player around.

Kinematic objects, by definition, are not able to be restricted by the physics system. I think you’re thinking about the relationship wrong. Your player should not be kinematic. The player’s gun should be.

2 Likes

thank you very much

1 Like