How to change the polygon collision for each animated sprite frame

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fpicoral

I have an AnimatedSprite in a KinematicBody2D, which has a PolygonCollision2D. I would like to change the shape for each frame of the animated sprite. Is this possible?