Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to edges crate #14

Merged
merged 2 commits into from
Mar 4, 2024
Merged

migrate to edges crate #14

merged 2 commits into from
Mar 4, 2024

Conversation

shnewto
Copy link
Owner

@shnewto shnewto commented Mar 4, 2024

this pr pulls the edge marching out of bevy_collider_gen and uses the functionality of the edges crate.

migration guide

imports

replace this

use bevy_collider_gen::edge;

with this

use bevy_collider_gen::Edges;

getting edges from images

replace functions that took an image like this

let edges = multi_image_edge_translated(sprite_image);

with this

let edges = Edge::from(sprite_image).multi_image_edge_translated();

march_edges

replace this

bevy_collider_gen::edge::march_edges(...)

with this

bevy_collider_gen::Edges::march_edges(...)

@shnewto shnewto merged commit 26dee55 into main Mar 4, 2024
7 checks passed
@shnewto shnewto deleted the migrate-to-edges-crate branch March 4, 2024 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant