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

bevy_ecs_tilemap generation? #1

Open
johanhelsing opened this issue Jan 8, 2023 · 2 comments
Open

bevy_ecs_tilemap generation? #1

johanhelsing opened this issue Jan 8, 2023 · 2 comments

Comments

@johanhelsing
Copy link

This looks really interesting. Would it be within the scope of the project to generate colliders from bevy_ecs_tilemap tilemaps? Could perhaps be added behind a feature flag?

@shnewto
Copy link
Owner

shnewto commented Jan 8, 2023

@johanhelsing I really like the idea that this crate can eventually support generating colliders from a number of starting points. I was imagining my next target might be meshes in GLTF files but I'm happy to dig into how generate colliders for tilemaps instead. I'd probably need to tap you for some testing once something's preliminarily in place though because I don't have much experience using tilemaps myself.

alternatively I'd welcome for a PR with this feature if you feel up for making one!

@Adrien5902
Copy link

@johanhelsing i'm working on a game which uses tiled map editor for tilemaps making and bevy_ecs_tilemap for loading using this helper and i modified it using the image crate to slice tilsets and then generating collider
here's the code if you wanna take a look
I use the images transparency ratios to know if it's some grass or a full block and determine if a collider is needed or not

here's what it looks like
image

and for some reason my slopes aren't generated correctly so I might open an issue

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

No branches or pull requests

3 participants