Skip to content

the trait bound PhysicsBundle<'_, '_, f32, NPhysicsBackend>: SystemBundle<'_, '_> is not satisfied #17

Description

@rosenjcb

I get this error:

error[E0277]: the trait bound `PhysicsBundle<'_, '_, f32, NPhysicsBackend>: SystemBundle<'_, '_>` is not satisfied
   --> src\main.rs:227:22
    |
227 |         .with_bundle(PhysicsBundle::<f32, NPhysicsBackend>::new()).unwrap()
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `SystemBundle<'_, '_>` is not implemented for `PhysicsBundle<'_, '_, f32, NPhysicsBackend>`

And I import these types in as such:

use amethyst_physics::PhysicsBundle;
use amethyst_nphysics::NPhysicsBackend;

The reason why I do that is because I think NPhysicsBackend was moved out of amethyst a while ago. Any clue what's up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions