I need help with the collision polygons

Godot Version

3.5.2 RC2

Question

Is there anyways to automatically generate 2d polygons based on the sprite given

As long as the image has alpha then you can use the BitMap class to load an Image as a bitmap with BitMap.create_from_image_alpha() and then get the polygons with BitMap.opaque_to_polygons()

Why are you using an old release candidate of Godot 3.5.2? The stable version was released in 2023.