- Home /
Change polygon collider depending on the animation
Hi, I'm doing an app like the Google Chrome Easter Egg (the dinosaur) and I'm having some problems.
I have a polygon collider 2D for the dino, but when it bends I have to change the collider. If I change the polygon collider 2D to another collider, many bugs show up (If the person that is playing the game clicks to jump when the collider is changing, the dino can jump twice or things like this).
Is there any way to use the same collider but with different shape? The Box Collider 2D can change its shape during animations, but the Polygon Collider 2D no.
Thanks.
What does your animation look like? It's usually a good idea to assemble it of simple colliders which then can separately move.
Your answer
Follow this Question
Related Questions
Jump through a Collider 3 Answers
How to create a 3d polygon collider? 3 Answers
Rotating Box Collider 2D independent of its gameObject [v4.7.2f1] 1 Answer
Weird ContactPoint2D on two BoxCollider2D collision 0 Answers
Unexpected token: collider? 1 Answer