sprite ai
Keep a Walkable Notch When Converting an AI Sprite Outline into Collision
A generated L-shaped barrier can look like it leaves a passage open while its converted collision geometry closes it. A convex hull describes the outside of the shape. It can fill a notch that is important for movement.
Put the playable opening in the acceptance test
For a toy L with two-unit-thick arms, check a point such as (3, 3) inside the visual notch. That point must remain outside the collision pieces. Check a second point such as (1, 3) inside an arm to confirm the importer did not drop the whole barrier. Use coordinates in the same local origin as the art-to-collision conversion.
Test after the runtime shape is installed
Run the points against the actual imported collision body and display a debug overlay on the sprite. Then simplify or re-export the outline and repeat. If the arms still block but the notch no longer passes, inspect the number and arrangement of the convex pieces rather than erasing the intended solid pixels.
FrameSprite’s technical guide and test fixture publishes the Pymunk comparison between a single hull and a decomposed L. It supplies a small control that makes the phantom obstacle measurable.
Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.