- Home /
Question by
dadude123 · Mar 07, 2014 at 05:43 PM ·
collider 2dcompound collider
Multiple colliders on one gameobject
Hi, I have two BoxCollider2D attached to my object. Both are at position 0,0 relative to the object (so they are centered) The first collider has 1,1 as size and IsTrigger unchecked.
The second collider has 0.8,0.8 as size and IsTrigger is checked.
Then I have my player, consisting of only a circle collider2d.
My problem: OnTriggerEntered2D is called on the player even though it should be impossible. (since the IsTrigger collider on my obstacles is INSIDE the normal collider)
I tried to change the players collision detection to continuous. But it doesn't help.
I also tried to change the velocity and position iterations in the phzsics2d settings to a higher value.
But it still sometimes causes the OnTriggerEnter2D function to be called.
Comment
Your answer
