Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

[SOLVED] Problem with Two Colliders on One Object

$
0
0
Hey, the game I'm working on has an object that has two colliders (Polygon Collider 2D and Box Collider 2D). I have a script attached to this object that has an OnCollisionEnter2D function. What I want to do is to have the script detect which collider that is attached to the object (either the Polygon or the Box) collides with another collider that is attached to a different object. To be more exact, I want this: If the object's Box Collider 2D starts colliding with a different object's Box...

[SOLVED] Problem with Two Colliders on One Object

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>