- Home /
Question by
CarterGrycko · Feb 12, 2018 at 02:07 AM ·
collisioncollidercolliderscollider2d
Is it possible to detect collisions between 2d and 3d objects?
In my 3d scene I have a 3d object with a capsule collider. Also in this scene I have a 2d sprite with a 3d box collider. I would think that this setup would work, as both are 3d colliders but even though I have one set as a trigger the OnTrigger function is not being triggered. Any ideas as to why this would not work?
Comment
Best Answer
Answer by melsy · Feb 12, 2018 at 03:07 AM
Is there a rigidbody on both objects?
I haven't used Unity for a few months and forgot I needed a rigidbody. I didn't have one on either of them. Thanks for help
Answer by dongbyb · Feb 12, 2018 at 03:24 AM
you can use 2D collider to instead of the 3D collider on the all gameobjects in project,you can use 2d collider instead of the 3d collider in all gameobjects
Your answer
![](https://koobas.hobune.stream/wayback/20220612152440im_/https://answers.unity.com/themes/thub/images/avi.jpg)