- Home /
3D rigidbody surface to collide with 2D collider
Hello, I have a 2D track with a polygoncollider2D and I need my 3D rigidbody object to collide with the lines, I need to limit the collider to the bottom part of the object (cube in this case).
Do i need to have an edge collider on the bottom part of the cube or is there another way?
Answer by tormentoarmagedoom · Apr 10, 2018 at 11:55 AM
I never tried it. But i think is better to use 3D colliders in both objects.
I need to use a polygoncollider2d on one object because i'm generating it from code, I did use a boxcollider2d on the other object but the problem is that the polygoncollider doesn't fit the object (it's too big and too far off) Is there a method to resize it so that it fits the object exaclty?
Your answer
![](https://koobas.hobune.stream/wayback/20220612160438im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Detecting collision of two game objects? 0 Answers
Unity 5 - Sliding Rigidbodies with maximum friction 2 Answers
Collider with rigidbody does not register collision with terrain 2 Answers
Surface interaction between rotating RigidBodies? 0 Answers
How do I change Raycast's direction based on movement input? 1 Answer