Collider2D not stopping when colliding with another Collider2D [Solved]
So I have a 2D player with a Capsule Collider 2D and a Kinematic Rigidbody 2D and a tree with 2 colliders. One on the leaves and one on the trunk. The leaves have a Circle Collider 2D with Is Trigger on and works fine but the trunk with the Box Collider 2D and Is Trigger off doesn't seem to work. I'm trying to just use the box collider to stop the player from being able to walk through the tree trunk but it does nothing. I've tried giving the tree a rigidbody2d and tried unticking and ticking every option in the rigidbody inspector and collider inspector on both the player and the tree but nothing seems to work. Am I missing a component or do I need to program an OnCollisionEnter2D for this or something. I would really appreciate any suggestions or solutions.
Using Unity version 2018.2.20f1
Answer by yourfriendninjarinplays · May 14, 2019 at 09:08 AM
Did You Try Turning Kinematic Into Dynamic?
Oddly enough I didn't switch that. For some reason I was under the impression that a rigidbody had to be kinematic in order move it with script but I guess that is not the case. Thank you your help, I really appreciate it.
Answer by BerbeceMihai · May 14, 2019 at 12:50 PM
Thank you for your response. I have seen that chart before and was confused because it says kinematic rigidbody and rigidbody collider do return collision but I guess that is only for scripting purpose and not for actual physical collision.
Your answer
Follow this Question
Related Questions
Sprite 2d passes through the ground 0 Answers
Circle Collider 2d is slipping off box colider2d when it shouldnt 1 Answer
OnTriggerEnter2D executed once 0 Answers
Tilemap Collider not Colliding 0 Answers
Why Object2D jump out collision? 1 Answer