How to create physics shapes for animated sprites?
To create a physics shape that approximatively matches all frames of an animated sprite, follow these steps:
- Click Add Sprites to add the first frame of your animation to the PhysicsEditor project
- In the right-hand sidebar, click the "+" icon next to the filename to add the remaining animation frames.
- Use the filename dropdown to switch between different sprite frames. This allows you to check whether the physics shape aligns well across all frames.
When working with animated sprites, the Shape Tracer dialog offers different "Frame mode" options:
- Single frame - Generates a shape based on the frame selected via the "Animation phase" slider.
- All frames - union - Combines all sprite frames to create a shape that fully encompasses all frame outlines.
- All frames - intersection - Creates a shape based on the overlapping area common to all frames.