shnewto / bevy_collider_gen Goto Github PK
View Code? Open in Web Editor NEWa library for generating 2D colliders for bevy apps from images
License: Apache License 2.0
a library for generating 2D colliders for bevy apps from images
License: Apache License 2.0
I've been noticing that there are plenty of other things (beyond rapier colliders ๐) that could be useful once we have what this crate does under the hood, i.e. provide the edges of a sprite / image. one of those things is colliders for other physics engines like bevy_xpbd.
My naming of this project / crate wasn't very forward thinking in that regard, but maybe if there's an opportunity to extend to things outside the world of simply rapier colliders, I can figure some renaming to be more appropriate for what this whole thing does ๐
The "rapier collider" bit of this crate maybe a misnomer anyway, it does do that, but it doesn't have to only do that. the implementation isn't specific to the rapier engine afaik. it was just a convenient (to me) library that gave me what I was wanting at the time (rapier colliders). I think we could provide the same thing using this crate's edge
module and whatever library accepts a collection of points.
Another issue that I saw mentioned in the Bevy discord is that pixel perfect colliders may not always be ideal for large sprites, I'd be glad to hear about and try to support alternative collections of points, or maybe just a convenient / smart ways to filter the points after they're generated.
@Jondolf if any of my ramblings sound interesting to you, I'd be glad for your input!
I'm going to tag this issue as "help wanted" in case anyone feels inspired to tackle some of this, specifically xpbd support before I find some time to try and wrangle it myself.
Hello, I wanted to say that the library is awesome! But I'd like to extend the flexibility of the library by exposing march_edges
function, so we can have custom behavior rather than having only images to generate collisions from.
It'd be great to make rapier example a little less... "woah weird physics" ๐ต ๐ ๐
It'd be great to tune the xpbd example to have more... sensible physics ๐ ๐ โ๏ธ โจ
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.