You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0432]: unresolved import `rand::StdRng`
--> world.rs:20:25
|
20 | use rand::{SeedableRng, StdRng};
| ^^^^^^ no `StdRng` in the root
error[E0432]: unresolved imports `rand::distributions::Range`, `rand::distributions::IndependentSample`
--> world.rs:21:27
|
21 | use rand::distributions::{Range, IndependentSample};
| ^^^^^ ^^^^^^^^^^^^^^^^^ no `IndependentSample` in `distributions`
| |
| no `Range` in `distributions`
error[E0308]: mismatched types
--> capsules.rs:69:20
|
69 | a: Point3::new(-0.5, 0.0, 0.0),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mgf::cgmath::Point3`, found struct `cgmath::Point3`
|
= note: expected struct `mgf::cgmath::Point3<f32>`
found struct `cgmath::Point3<{float}>`
= note: perhaps two different versions of crate `cgmath` are being used?
error[E0308]: mismatched types
--> capsules.rs:70:20
|
70 | d: Vector3::new(1.0, 0.0, 0.0),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mgf::cgmath::Vector3`, found struct `cgmath::Vector3`
|
= note: expected struct `mgf::cgmath::Vector3<f32>`
found struct `cgmath::Vector3<{float}>`
= note: perhaps two different versions of crate `cgmath` are being used?
error[E0308]: mismatched types
--> capsules.rs:90:28
|
90 | rb.set_pos(Point3::new(x, y, z));
| ^^^^^^^^^^^^^^^^^^^^ expected struct `mgf::cgmath::Point3`, found struct `cgmath::Point3`
|
= note: expected struct `mgf::cgmath::Point3<f32>`
found struct `cgmath::Point3<f32>`
= note: perhaps two different versions of crate `cgmath` are being used?
error[E0308]: mismatched types
--> world.rs:131:36
|
131 | terrain_mesh.push_vert(Point3::from(vert.pos));
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct `mgf::cgmath::Point3`, found struct `cgmath::Point3`
|
= note: expected struct `mgf::cgmath::Point3<f32>`
found struct `cgmath::Point3<f32>`
= note: perhaps two different versions of crate `cgmath` are being used?
error[E0308]: mismatched types
--> world.rs:150:30
|
150 | terrain_mesh.set_pos(Point3::new(0.0, -10.0, 0.0));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `mgf::cgmath::Point3`, found struct `cgmath::Point3`
|
= note: expected struct `mgf::cgmath::Point3<f32>`
found struct `cgmath::Point3<{float}>`
= note: perhaps two different versions of crate `cgmath` are being used?
error[E0308]: mismatched types
--> world.rs:179:85
|
179 | let id: usize = self.bodies.add_body(collider, mass, restitution, friction, world_force).into();
| ^^^^^^^^^^^ expected struct `mgf::cgmath::Vector3`, found struct `cgmath::Vector3`
|
= note: expected struct `mgf::cgmath::Vector3<f32>`
found struct `cgmath::Vector3<f32>`
= note: perhaps two different versions of crate `cgmath` are being used?
error[E0599]: no method named `to_vec` found for struct `mgf::cgmath::Point3<f32>` in the current scope
--> world.rs:335:76
|
335 | model: (Matrix4::from_translation(self.bodies.x[i].to_vec())
| ^^^^^^ method not found in `mgf::cgmath::Point3<f32>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use mgf::cgmath::EuclideanSpace;`
error[E0599]: no method named `to_vec` found for struct `mgf::cgmath::Point3<f32>` in the current scope
--> world.rs:351:63
|
351 | model: (Matrix4::from_translation(c.a.to_vec())
| ^^^^^^ method not found in `mgf::cgmath::Point3<f32>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use mgf::cgmath::EuclideanSpace;`
error[E0599]: no method named `to_vec` found for struct `mgf::cgmath::Point3<f32>` in the current scope
--> world.rs:360:63
|
360 | model: (Matrix4::from_translation(c.a.to_vec() + c.d)
| ^^^^^^ method not found in `mgf::cgmath::Point3<f32>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use mgf::cgmath::EuclideanSpace;`
error[E0599]: no method named `to_vec` found for struct `mgf::cgmath::Point3<f32>` in the current scope
--> world.rs:369:70
|
369 | model: (Matrix4::from_translation(c.center().to_vec())
| ^^^^^^ method not found in `mgf::cgmath::Point3<f32>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use mgf::cgmath::EuclideanSpace;`
error[E0277]: the trait bound `cgmath::Matrix4<_>: std::convert::From<mgf::cgmath::Quaternion<f32>>` is not satisfied
--> world.rs:370:35
|
370 | ... * Matrix4::from(self.bodies.q[i])
| ^^^^^^^^^^^^^ the trait `std::convert::From<mgf::cgmath::Quaternion<f32>>` is not implemented for `cgmath::Matrix4<_>`
|
= help: the following implementations were found:
<&'a cgmath::Matrix4<S> as std::convert::From<&'a [S; 16]>>
<&'a cgmath::Matrix4<S> as std::convert::From<&'a [[S; 4]; 4]>>
<&'a mut cgmath::Matrix4<S> as std::convert::From<&'a mut [S; 16]>>
<&'a mut cgmath::Matrix4<S> as std::convert::From<&'a mut [[S; 4]; 4]>>
and 9 others
= note: required by `std::convert::From::from`
error[E0599]: no method named `magnitude` found for struct `mgf::cgmath::Vector3<f32>` in the current scope
--> world.rs:371:75
|
371 | ... * Matrix4::from_nonuniform_scale(c.r, c.d.magnitude(), c.r)).into(),
| ^^^^^^^^^ method not found in `mgf::cgmath::Vector3<f32>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use mgf::cgmath::InnerSpace;`
error[E0599]: no method named `to_vec` found for struct `mgf::cgmath::Point3<f32>` in the current scope
--> world.rs:385:68
|
385 | model: Matrix4::from_translation(self.terrain.center().to_vec()).into(),
| ^^^^^^ method not found in `mgf::cgmath::Point3<f32>`
|
= help: items from traits can only be used if the trait is in scope
= note: the following trait is implemented but not in scope; perhaps add a `use` for it:
`use mgf::cgmath::EuclideanSpace;`
error: aborting due to 15 previous errors
Some errors have detailed explanations: E0277, E0308, E0432, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `mgf_demo`.
To learn more, run the command again with --verbose.
is this project dead?
The text was updated successfully, but these errors were encountered:
It’s not dead, but it’s not being actively worked on. I don’t think I pinned any of the demos to specific package versions so they’re prone to breaking. I’ll try to fix them up if I have some free time today
errors:
is this project dead?
The text was updated successfully, but these errors were encountered: