Skip to content

Commit

Permalink
Release 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Feb 20, 2024
1 parent 860c989 commit 77cbe49
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Below are some of the current features of Bevy XPBD.
- `f32`/`f64` precision (`f32` by default)

You can find a more complete list along with documentation in the
[Table of contents](https://docs.rs/bevy_xpbd_3d/0.3.0/bevy_xpbd_3d/#table-of-contents)
[Table of contents](https://docs.rs/bevy_xpbd_3d/latest/bevy_xpbd_3d/#table-of-contents)
on docs.rs.

## Documentation
Expand All @@ -70,11 +70,11 @@ First, add `bevy_xpbd_2d` or `bevy_xpbd_3d` to your dependencies in `Cargo.toml`
```toml
# For 2D applications:
[dependencies]
bevy_xpbd_2d = "0.3"
bevy_xpbd_2d = "0.4"

# For 3D applications:
[dependencies]
bevy_xpbd_3d = "0.3"
bevy_xpbd_3d = "0.4"

# If you want to use the most up-to-date version, you can follow the main branch:
[dependencies]
Expand Down Expand Up @@ -126,7 +126,7 @@ fn setup(
// Light
commands.spawn(PointLightBundle {
point_light: PointLight {
intensity: 1500.0,
intensity: 2_000_000.0,
shadows_enabled: true,
..default()
},
Expand Down Expand Up @@ -155,25 +155,27 @@ By default the examples use `f32`. To run the `f64` versions, you need to disabl
and precision:

```shell
cargo run --example cubes --no-default-features --features "3d f64"
# Manually specify dimension and precision. `parry-f64` enables collision detection using Parry.
cargo run --example cubes --no-default-features --features "3d f64 parry-f64"
```

## Supported Bevy versions

| Bevy | Bevy XPBD |
| ---- | --------- |
| 0.13 | 0.4 |
| 0.12 | 0.3 |
| 0.11 | 0.2 |
| 0.10 | 0.1 |

## Future features

- Joint motors
- Articulations, aka. multibody joints
- Continuous collision detection (CCD)
- Per-entity collision hooks or callbacks
- Flags for what types of collisions are active, like collisions against specific rigid body types, sensors or parents
- Performance optimization (better broad phase, parallel solver...)
- Joint motors
- Articulations, aka. multibody joints
- Proper cross-platform determinism
- Soft bodies (cloth and deformable solids)
- Maybe fluid simulation
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_xpbd_2d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_xpbd_2d"
version = "0.3.2"
version = "0.4.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Joona Aalto <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_xpbd_3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_xpbd_3d"
version = "0.3.2"
version = "0.4.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Joona Aalto <[email protected]>"]
Expand Down
9 changes: 5 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
//! ```toml
//! # For 2D applications:
//! [dependencies]
//! bevy_xpbd_2d = "0.3"
//! bevy_xpbd_2d = "0.4"
//!
//! # For 3D applications:
//! [dependencies]
//! bevy_xpbd_3d = "0.3"
//! bevy_xpbd_3d = "0.4"
//!
//! # If you want to use the most up-to-date version, you can follow the main branch:
//! [dependencies]
Expand All @@ -39,8 +39,9 @@
//!
//! ```toml
//! [dependencies]
//! # Add 3D Bevy XPBD with double-precision floating point numbers
//! bevy_xpbd_3d = { version = "0.3", default-features = false, features = ["3d", "f64"] }
//! # Add 3D Bevy XPBD with double-precision floating point numbers.
//! # `parry-f64` enables collision detection using Parry.
//! bevy_xpbd_3d = { version = "0.4", default-features = false, features = ["3d", "f64", "parry-f64"] }
//! ```
//!
//! ### Feature flags
Expand Down

0 comments on commit 77cbe49

Please sign in to comment.