2D Toolkit Forum
2D Toolkit => Support => Topic started by: Tongie on September 20, 2012, 05:10:49 pm
-
My animated sprite define collider type as polygon dont collide with a sprite that define collider type as polygon.
-
In Unity, only convex mesh colliders can collide with other mesh colliders. That means one of them will need to be tagged as convex, ideally the moving one.
Also, please note that you can't animate polygon colliders right now - they are very very expensive to change. You can move them, just not have frame animation on them.
This is a limit of the Physx engine used by Unity.
-
oh ok i checked convex but when i pressed play it auto uncheck. how do i make 2 circle collide? one sprite , one animated sprite.
-
Btw thanks for the information...I solved it. Need to check the convex inside the spritecollection editor not on the inspector.
-
Hi, just to be clear-- It's okay to animate a sprite with a polygon collider as long as the polygon is the same for each frame? Or will even that cause a problem?
-
Animating the collider if its the same each frame is fine, but you should set it up that the first sprite has the collider and everything else is set to Unset, so they don't try to change it.