esbuah git:(master) ✗ cargo run
Compiling esbuah v0.1.0 (/home/andraantariksa/Projects/esbuah)
error[E0432]: unresolved import `nphysics_testbed2d::objects::FluidRenderingMode`
--> src/main.rs:12:26
|
12 | use nphysics_testbed2d::{objects::FluidRenderingMode, Testbed};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `FluidRenderingMode` in `objects`
error[E0308]: mismatched types
--> src/main.rs:58:29
|
58 | testbed.set_fluid_color(fluid_handle, Point3::new(0.8, 0.7, 1.0));
| ^^^^^^^^^^^^ expected `usize`, found struct `salva2d::object::fluid::FluidHandle`
error[E0308]: mismatched types
--> src/main.rs:58:43
|
58 | testbed.set_fluid_color(fluid_handle, Point3::new(0.8, 0.7, 1.0));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `nalgebra::geometry::point::Point`, found struct `na::Point`
|
= note: expected struct `nalgebra::geometry::point::Point<f32, nalgebra::base::dimension::U3>`
found struct `na::Point<{float}, na::U3>`
= note: perhaps two different versions of crate `nalgebra` are being used?
error[E0308]: mismatched types
--> src/main.rs:63:29
|
63 | testbed.set_fluid_color(fluid_handle, Point3::new(0.6, 0.8, 0.5));
| ^^^^^^^^^^^^ expected `usize`, found struct `salva2d::object::fluid::FluidHandle`
error[E0308]: mismatched types
--> src/main.rs:63:43
|
63 | testbed.set_fluid_color(fluid_handle, Point3::new(0.6, 0.8, 0.5));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `nalgebra::geometry::point::Point`, found struct `na::Point`
|
= note: expected struct `nalgebra::geometry::point::Point<f32, nalgebra::base::dimension::U3>`
found struct `na::Point<{float}, na::U3>`
= note: perhaps two different versions of crate `nalgebra` are being used?
error[E0308]: mismatched types
--> src/main.rs:115:39
|
115 | testbed.set_body_color(rb_handle, Point3::new(0.3, 0.3, 0.7));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `nalgebra::geometry::point::Point`, found struct `na::Point`
|
= note: expected struct `nalgebra::geometry::point::Point<f32, nalgebra::base::dimension::U3>`
found struct `na::Point<{float}, na::U3>`
= note: perhaps two different versions of crate `nalgebra` are being used?
error[E0308]: mismatched types
--> src/main.rs:194:9
|
194 | mechanical_world,
| ^^^^^^^^^^^^^^^^ expected struct `nphysics2d::world::mechanical_world::MechanicalWorld`, found struct `nphysics2d::world::MechanicalWorld`
|
= note: expected struct `nphysics2d::world::mechanical_world::MechanicalWorld<f32, generational_arena::Index, generational_arena::Index>`
found struct `nphysics2d::world::MechanicalWorld<{float}, generational_arena::Index, generational_arena::Index>`
= note: perhaps two different versions of crate `nphysics2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:195:9
|
195 | geometrical_world,
| ^^^^^^^^^^^^^^^^^ expected struct `nphysics2d::world::geometrical_world::GeometricalWorld`, found struct `nphysics2d::world::GeometricalWorld`
|
= note: expected struct `nphysics2d::world::geometrical_world::GeometricalWorld<f32, generational_arena::Index, generational_arena::Index>`
found struct `nphysics2d::world::GeometricalWorld<_, generational_arena::Index, generational_arena::Index>`
= note: perhaps two different versions of crate `nphysics2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:196:9
|
196 | bodies,
| ^^^^^^ expected struct `nphysics2d::object::body_set::DefaultBodySet`, found struct `nphysics2d::object::DefaultBodySet`
|
= note: expected struct `nphysics2d::object::body_set::DefaultBodySet<f32>`
found struct `nphysics2d::object::DefaultBodySet<{float}>`
= note: perhaps two different versions of crate `nphysics2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:197:9
|
197 | colliders,
| ^^^^^^^^^ expected struct `nphysics2d::object::collider_set::DefaultColliderSet`, found struct `nphysics2d::object::DefaultColliderSet`
|
= note: expected struct `nphysics2d::object::collider_set::DefaultColliderSet<f32>`
found struct `nphysics2d::object::DefaultColliderSet<f32>`
= note: perhaps two different versions of crate `nphysics2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:198:9
|
198 | joint_constraints,
| ^^^^^^^^^^^^^^^^^ expected struct `nphysics2d::joint::joint_constraint::DefaultJointConstraintSet`, found struct `nphysics2d::joint::DefaultJointConstraintSet`
|
= note: expected struct `nphysics2d::joint::joint_constraint::DefaultJointConstraintSet<f32>`
found struct `nphysics2d::joint::DefaultJointConstraintSet<_, _>`
= note: perhaps two different versions of crate `nphysics2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:199:9
|
199 | force_generators,
| ^^^^^^^^^^^^^^^^ expected trait `nphysics2d::force_generator::force_generator::ForceGenerator`, found trait `nphysics2d::force_generator::ForceGenerator`
|
= note: expected struct `generational_arena::Arena<std::boxed::Box<(dyn nphysics2d::force_generator::force_generator::ForceGenerator<f32, generational_arena::Index> + 'static)>>`
found struct `generational_arena::Arena<std::boxed::Box<dyn nphysics2d::force_generator::ForceGenerator<_, _>>>`
= note: perhaps two different versions of crate `nphysics2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:201:30
|
201 | testbed.set_liquid_world(liquid_world, coupling_set);
| ^^^^^^^^^^^^ expected struct `salva2d::liquid_world::LiquidWorld`, found a different struct `salva2d::liquid_world::LiquidWorld`
|
= note: expected struct `salva2d::liquid_world::LiquidWorld<f32>` (struct `salva2d::liquid_world::LiquidWorld`)
found struct `salva2d::liquid_world::LiquidWorld<f32>` (struct `salva2d::liquid_world::LiquidWorld`)
= note: perhaps two different versions of crate `salva2d` are being used?
error[E0308]: mismatched types
--> src/main.rs:201:44
|
201 | testbed.set_liquid_world(liquid_world, coupling_set);
| ^^^^^^^^^^^^ expected struct `salva2d::coupling::collider_coupling_manager::ColliderCouplingManager`, found struct `salva2d::coupling::collider_coupling_manager::ColliderCouplingSet`
|
= note: expected struct `salva2d::coupling::collider_coupling_manager::ColliderCouplingManager<f32, generational_arena::Index>`
found struct `salva2d::coupling::collider_coupling_manager::ColliderCouplingSet<f32, generational_arena::Index>`
error[E0308]: mismatched types
--> src/main.rs:202:21
|
202 | testbed.look_at(Point2::new(0.0, 2.5), 95.0);
| ^^^^^^^^^^^^^^^^^^^^^ expected struct `nalgebra::geometry::point::Point`, found struct `na::Point`
|
= note: expected struct `nalgebra::geometry::point::Point<f32, nalgebra::base::dimension::U2>`
found struct `na::Point<{float}, na::U2>`
= note: perhaps two different versions of crate `nalgebra` are being used?
error[E0599]: no method named `set_fluid_rendering_mode` found for mutable reference `&mut nphysics_testbed2d::testbed::Testbed` in the current scope
--> src/main.rs:203:13
|
203 | testbed.set_fluid_rendering_mode(FluidRenderingMode::VelocityColor { min: 0.0, max: 5.0 });
| ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut nphysics_testbed2d::testbed::Testbed`
error[E0599]: no method named `mechanical_world_mut` found for mutable reference `&mut nphysics_testbed2d::testbed::Testbed` in the current scope
--> src/main.rs:204:13
|
204 | testbed.mechanical_world_mut().set_timestep(1.0 / 100.0);
| ^^^^^^^^^^^^^^^^^^^^ method not found in `&mut nphysics_testbed2d::testbed::Testbed`
error: aborting due to 17 previous errors
Some errors have detailed explanations: E0308, E0432, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `esbuah`.
To learn more, run the command again with --verbose.
[package]
name = "esbuah"
version = "0.1.0"
authors = ["Andra Antariksa <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
parallel = [ "nphysics_testbed2d/parallel"]
[dependencies]
Inflector = "0.11"
alga = "0.9"
salva2d = { version = "0.2.0", features = [ "nphysics", "sampling" ] }
nalgebra = "0.20"
ncollide2d = "0.22"
nphysics2d = "0.14"
nphysics_testbed2d = { version = "0.7", features = [ "fluids" ] }