- Home /
(2D) Can't use colliders when I have a kinematic rigidbody?
I'm trying to make my 2d character not drift downwards because of rigidbody, so I made the rigidbody kinematic but now the colliders don't work D: What do I do?
What do you mean by drift downwards? Is he falling due to gravity? I'm pretty sure making the rigidbody kinematic will allow the player to collide with other GameObjects that are $$anonymous$$inematic as well
Answer by mateo4632 · Dec 27, 2016 at 05:20 AM
What do you mean by drift downwards? Is he falling due to gravity? I'm pretty sure making the rigidbody kinematic will allow the player to collide only with other GameObjects that are Kinematic as well.
Yes it's due to gravity but what if I want other things to be collidable too like other npcs in the game?
You could change the Rigidbody back to dynamic, and then make the gravity scale 0. This way your Gameobject will collide with anything that has a collider and wI'll not fall. Hope this works for you!
Your answer
Follow this Question
Related Questions
Line is not Affected by Physics 0 Answers
Kinematic rigidbody movement. 2 Answers
Unity 5 no longer supports no kinematic rigid bodys with mesh colliders? Workaround? 1 Answer
Moving a regular Unity primitive and PhysX performance 0 Answers
2D Colliders stops working at random despite rigidbody, OnMouseDown not called 0 Answers