- Home /
OnCollisionEnter2D calls when really no collision
Hi,
problem is: working with 2D mode, add have a sprite with BoxCollider2D (ground), also have a parent Gameobject with childs, childs have BoxColliders2D and Rigidbodies2D, so childs are moved by animator, and OnCollisionEnter2D are called when animation run but i see that childs are not collide with ground.
may be someone see such situation too ?
I did this and it shows that it is my ground, but there are too much space between child and ground, and i see that should not be collision
Answer by gimoj · Sep 11, 2014 at 09:53 AM
Try using a raycast to see when you are grounded. Just try one of these videos
https://www.youtube.com/watch?v=cJj7-Sy03HQ https://www.youtube.com/watch?v=jMu-p_Oy1pM
Sorry if vague. I forgot which one.
Your answer
Follow this Question
Related Questions
rigidbody2d does not follow physical rules 0 Answers
Weird behaviour after Collision? 0 Answers
Using child colliders with rigidbodies/joints in 2D 0 Answers
2D Rubber hands (Weird question) 1 Answer
Box Collider 2d don't collide 3 Answers