Skip to content

fix(examples): enable f32 precision for avian3d#44

Merged
janhohenheim merged 2 commits intojanhohenheim:mainfrom
rockcen9:fix/example-avian-precision
Jan 28, 2026
Merged

fix(examples): enable f32 precision for avian3d#44
janhohenheim merged 2 commits intojanhohenheim:mainfrom
rockcen9:fix/example-avian-precision

Conversation

@rockcen9
Copy link
Contributor

@rockcen9 rockcen9 commented Jan 2, 2026

Objective

  • Fix a compilation error that prevents the rerecast_examples package from building. Since avian3d v0.4.0, an explicit precision feature must be selected, otherwise the compiler throws the following error:
error: either feature "f32" or "f64" must be enabled

Solution

  • Enable the parry-f32 feature for avian3d within examples/Cargo.toml.

This ensures that the examples have a defined floating-point precision consistent with the rest of the workspace, without forcing this dependency configuration onto the core library crates.

Testing

  • Command: cargo run --package rerecast_examples --example filtering

Running examples failed with the following error:
"either feature 'f32' or 'f64' must be enabled"

This is because avian3d 0.4 requires an explicit precision feature.
Added 'parry-f32' to examples/Cargo.toml to resolve this.
Copy link
Owner

@janhohenheim janhohenheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

@janhohenheim janhohenheim enabled auto-merge January 3, 2026 01:49
@janhohenheim janhohenheim disabled auto-merge January 28, 2026 11:50
@janhohenheim janhohenheim merged commit a44ffc0 into janhohenheim:main Jan 28, 2026
7 of 8 checks passed
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.

2 participants