Hi,
I want to use Advanced Collider Shapes, in order to have multiple colliders per sprite in a Collection that will be used for creating an Animated Sprite. So, as the Sprite animates and changes shape, the corresponding colliders will be enabled to approximate the sprite's shape in each animation frame.
I was able to create 4 Advanced Colliders per Sprite in the Collection by following the relative documentation:
http://2dtoolkit.com/docs/latest/advanced/advanced_collider_shapes.htmlbut I haven't found any info in the documentation about the Advanced Collider Editor. Also, it says that "At runtime, the collision shapes for a sprite can be obtained from the tk2dSprite.CurrentSprite.customColliders array." However, there are no examples on workflow and usage, and I really need some help on implementing this feature.
After I created the Animation from the Collection, I created a Sprite with Animator in the scene, and the added Sprite had a Polygon Collider, which I deleted, and I understand that I will have to add the colliders myself, but I don't know how to use the shapes that I created for each sprite in the Collections to help me add the correct shaped collider on the animated sprite.
I also don't know how to use the tk2dSprite.CurrentSprite.customColliders array to enable/disable the correct collider for each frame of the animation.
Your help will be very much appreciated.