Skip to content

Commit

Permalink
remove the misuse compile check, there will be plenty of compile erro…
Browse files Browse the repository at this point in the history
…rs downstream if nothing's enabled
  • Loading branch information
shnewto committed Mar 1, 2024
1 parent c37b512 commit a3347ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords = ["bevy", "rapier", "png", "collider", "2d"]
readme = "README.md"

[features]
default = ["xpbd_2d"]
default = ["xpbd_2d","rapier2d"]
xpbd_2d = ["dep:bevy_xpbd_2d"]
rapier2d = ["dep:bevy_rapier2d"]

Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Crates.io](<https://img.shields.io/crates/d/bevy_rapier_collider_gen.svg>)](<https://crates.io/crates/bevy_rapier_collider_gen>)
[![MIT/Apache 2.0](<https://img.shields.io/badge/license-MIT%2FApache-blue.svg>)](<https://github.com/shnewto/bevy_rapier_collider_gen#license>)

a library for generating bevy_rapier2d and bevy_xpbd_2d colliders, for bevy apps, from images with transparency
a library for generating 2d colliders, for bevy apps, from images with transparency

## example

Expand All @@ -14,17 +14,21 @@ to see this in action you can run the example, with no args it generates a scene

### bevy_rapier2d

#### note that you must have the rapier2d feature enabled

```sh
cargo run --example rapier2d_colliders
```

### bevy_xpbd_2d

#### note that you must have the xpbd_2d feature enabled

```sh
cargo run --example xpbd_2d_colliders
```

you can also specify a path to an image yourself the example will attempt to generate one or more for the objects it finds
you can also specify a path to an image yourself the example will attempt to generate one or more convex_polyline colliders for the objects it finds

## about / why

Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![doc = include_str!("../README.md")]

#[cfg(all(not(feature = "rapier2d"), not(feature = "xpbd_2d")))]
compile_error!("At least one of the features `rapier2d` or `xpbd_2d` must be enabled.");

mod collider;
mod edge;

Expand Down

0 comments on commit a3347ce

Please sign in to comment.