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

fix 2d examples not compiling #674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spookyvision
Copy link

Objective

  • fix 2d examples not compiling, error was:
$ cargo run --example $ANY_AVIAN2D_EXAMPLE
error[E0433]: failed to resolve: use of undeclared type `Animatable`
   --> crates/avian2d/../../src/diagnostics/ui.rs:434:24
    |
434 |         text_color.0 = Animatable::interpolate(&green, &red, t.min(1.0)).into();
    |                        ^^^^^^^^^^ use of undeclared type `Animatable`

Solution

  • add bevy_animation to bevy feature flags in examples_common_2d

@Jondolf Jondolf added C-Examples Improvements or additions to examples 2D Specific to two dimensions P-Compile-Failure A failure to compile Avian labels Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2D Specific to two dimensions C-Examples Improvements or additions to examples P-Compile-Failure A failure to compile Avian
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants