Skip to content

Translate non-walkable areas into box2d #9

@ericoporto

Description

@ericoporto

I imagine if there's some way to reasonably fast package the non walkable pixels into boxes (static bodies with rectangle shape) then we could have a function that loads the walkable areas into the world.

https://stackoverflow.com/questions/57745418/pack-pixels-in-1bit-bw-binary-image-in-boxes/

Other idea is Moore Neighbor tracing

Potrace may be useful.

Also XAGE has a similar converter to polygons for walkable areas on AGS Export plug-in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions