error[E0433]: failed to resolve: could not find `physics` in `rg3d`
--> src/actor.rs:12:5
|
12 | physics::geometry::ContactEvent,
| ^^^^^^^ could not find `physics` in `rg3d`
error[E0433]: failed to resolve: could not find `physics` in `rg3d`
--> src/bot.rs:25:5
|
25 | physics::{
| ^^^^^^^ could not find `physics` in `rg3d`
error[E0432]: unresolved import `rg3d::scene::physics::RayCastOptions`
--> src/bot.rs:37:28
|
37 | physics::{Physics, RayCastOptions},
| ^^^^^^^^^^^^^^ no `RayCastOptions` in `scene::physics`
error[E0432]: unresolved import `rg3d::engine::RigidBodyHandle`
--> src/character.rs:8:5
|
8 | engine::RigidBodyHandle,
| ^^^^^^^^^^^^^^^^^^^^^^^ no `RigidBodyHandle` in `engine`
error[E0433]: failed to resolve: could not find `physics` in `rg3d`
--> src/level.rs:33:5
|
33 | physics::{
| ^^^^^^^ could not find `physics` in `rg3d`
error[E0432]: unresolved import `rg3d::engine::RigidBodyHandle`
--> src/jump_pad.rs:7:5
|
7 | engine::RigidBodyHandle,
| ^^^^^^^^^^^^^^^^^^^^^^^ no `RigidBodyHandle` in `engine`
error[E0433]: failed to resolve: could not find `physics` in `rg3d`
--> src/player.rs:17:5
|
17 | physics::{
| ^^^^^^^ could not find `physics` in `rg3d`
error[E0432]: unresolved import `rg3d::scene::physics::RayCastOptions`
--> src/level.rs:39:69
|
39 | self, base::BaseBuilder, camera::CameraBuilder, node::Node, physics::RayCastOptions, Scene,
| ^^^^^^^^^^^^^^^^^^^^^^^ no `RayCastOptions` in `scene::physics`
error[E0433]: failed to resolve: could not find `physics` in `rg3d`
--> src/projectile.rs:20:5
|
20 | physics::{
| ^^^^^^^ could not find `physics` in `rg3d`
error[E0433]: failed to resolve: could not find `physics` in `rg3d`
--> src/weapon.rs:15:5
|
15 | physics::geometry::InteractionGroups,
| ^^^^^^^ could not find `physics` in `rg3d`
error[E0432]: unresolved imports `rg3d::engine::RigidBodyHandle`, `rg3d::scene::physics::RayCastOptions`
--> src/projectile.rs:19:5
|
19 | engine::RigidBodyHandle,
| ^^^^^^^^^^^^^^^^^^^^^^^ no `RigidBodyHandle` in `engine`
...
31 | physics::RayCastOptions,
| ^^^^^^^^^^^^^^^^^^^^^^^ no `RayCastOptions` in `scene::physics`
error[E0432]: unresolved import `rg3d::scene::physics::RayCastOptions`
--> src/weapon.rs:21:28
|
21 | physics::{Physics, RayCastOptions},
| ^^^^^^^^^^^^^^ no `RayCastOptions` in `scene::physics`
error[E0433]: failed to resolve: use of undeclared type `ContactEvent`
--> src/actor.rs:207:17
|
207 | if let &ContactEvent::Started(a, b) = contact_event {
| ^^^^^^^^^^^^ use of undeclared type `ContactEvent`
error[E0433]: failed to resolve: use of undeclared type `RigidBodyBuilder`
--> src/bot.rs:875:13
|
875 | RigidBodyBuilder::new(BodyStatus::Dynamic)
| ^^^^^^^^^^^^^^^^ use of undeclared type `RigidBodyBuilder`
error[E0433]: failed to resolve: use of undeclared type `BodyStatus`
--> src/bot.rs:875:35
|
875 | RigidBodyBuilder::new(BodyStatus::Dynamic)
| ^^^^^^^^^^ use of undeclared type `BodyStatus`
error[E0433]: failed to resolve: use of undeclared type `ColliderBuilder`
--> src/bot.rs:880:13
|
880 | ColliderBuilder::capsule_y(body_height * 0.5, 0.28)
| ^^^^^^^^^^^^^^^ use of undeclared type `ColliderBuilder`
error[E0433]: failed to resolve: use of undeclared type `InteractionGroups`
--> src/bot.rs:964:33
|
964 | groups: InteractionGroups::all(),
| ^^^^^^^^^^^^^^^^^ use of undeclared type `InteractionGroups`
error[E0433]: failed to resolve: use of undeclared type `ChannelEventCollector`
--> src/level.rs:622:48
|
622 | scene.physics.event_handler = Box::new(ChannelEventCollector::new(
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ChannelEventCollector`
error[E0433]: failed to resolve: use of undeclared type `InteractionGroups`
--> src/level.rs:793:21
|
793 | groups: InteractionGroups::all(),
| ^^^^^^^^^^^^^^^^^ use of undeclared type `InteractionGroups`
error[E0433]: failed to resolve: use of undeclared type `InteractionGroups`
--> src/level.rs:1266:33
|
1266 | groups: InteractionGroups::all(),
| ^^^^^^^^^^^^^^^^^ use of undeclared type `InteractionGroups`
error[E0433]: failed to resolve: use of undeclared type `ChannelEventCollector`
--> src/level.rs:1402:68
|
1402 | engine.scenes[self.scene].physics.event_handler = Box::new(ChannelEventCollector::new(
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `ChannelEventCollector`
error[E0433]: failed to resolve: use of undeclared type `RigidBodyBuilder`
--> src/player.rs:160:13
|
160 | RigidBodyBuilder::new(BodyStatus::Dynamic)
| ^^^^^^^^^^^^^^^^ use of undeclared type `RigidBodyBuilder`
error[E0433]: failed to resolve: use of undeclared type `BodyStatus`
--> src/player.rs:160:35
|
160 | RigidBodyBuilder::new(BodyStatus::Dynamic)
| ^^^^^^^^^^ use of undeclared type `BodyStatus`
error[E0433]: failed to resolve: use of undeclared type `ColliderBuilder`
--> src/player.rs:165:13
|
165 | ColliderBuilder::capsule_y(height * 0.5, 0.35)
| ^^^^^^^^^^^^^^^ use of undeclared type `ColliderBuilder`
error[E0433]: failed to resolve: use of undeclared type `ColliderBuilder`
--> src/projectile.rs:186:36
|
186 | let collider = ColliderBuilder::ball(size).sensor(true).build();
| ^^^^^^^^^^^^^^^ use of undeclared type `ColliderBuilder`
error[E0433]: failed to resolve: use of undeclared type `RigidBodyBuilder`
--> src/projectile.rs:187:32
|
187 | let body = RigidBodyBuilder::new(BodyStatus::KinematicPositionBased)
| ^^^^^^^^^^^^^^^^ use of undeclared type `RigidBodyBuilder`
error[E0433]: failed to resolve: use of undeclared type `BodyStatus`
--> src/projectile.rs:187:54
|
187 | let body = RigidBodyBuilder::new(BodyStatus::KinematicPositionBased)
| ^^^^^^^^^^ use of undeclared type `BodyStatus`
error[E0433]: failed to resolve: use of undeclared type `InteractionGroups`
--> src/projectile.rs:293:25
|
293 | groups: InteractionGroups::all(),
| ^^^^^^^^^^^^^^^^^ use of undeclared type `InteractionGroups`
error[E0433]: failed to resolve: use of undeclared type `InteractionGroups`
--> src/weapon.rs:275:25
|
275 | groups: InteractionGroups::all(),
| ^^^^^^^^^^^^^^^^^ use of undeclared type `InteractionGroups`
error[E0412]: cannot find type `ContactEvent` in this scope
--> src/actor.rs:206:52
|
206 | pub fn handle_event(&mut self, contact_event: &ContactEvent, context: &mut UpdateContext) {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `IntersectionEvent` in this scope
--> src/level.rs:154:68
|
133 | pub struct Level {
| - help: you might be missing a type parameter: `<IntersectionEvent>`
...
154 | proximity_events_receiver: Option<crossbeam::channel::Receiver<IntersectionEvent>>,
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `ContactEvent` in this scope
--> src/level.rs:155:66
|
133 | pub struct Level {
| - help: you might be missing a type parameter: `<ContactEvent>`
...
155 | contact_events_receiver: Option<crossbeam::channel::Receiver<ContactEvent>>,
| ^^^^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type `Isometry3` in this scope
--> src/projectile.rs:342:32
|
342 | let position = Isometry3 {
| ^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type `Translation3` in this scope
--> src/projectile.rs:344:34
|
344 | translation: Translation3 {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `IntersectionEvent` in this scope
--> src/projectile.rs:412:27
|
412 | proximity_event: &IntersectionEvent,
| ^^^^^^^^^^^^^^^^^ not found in this scope
warning: unused import: `std::path::Path`
--> src/effects.rs:21:5
|
21 | use std::path::Path;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `rg3d::engine::resource_manager::TextureImportOptions`
--> src/main.rs:30:5
|
30 | use rg3d::engine::resource_manager::TextureImportOptions;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `rg3d::resource::texture::CompressionOptions`
--> src/main.rs:33:5
|
33 | use rg3d::resource::texture::CompressionOptions;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0283]: type annotations needed
--> src/character.rs:64:19
|
64 | body: Default::default(),
| ^^^^^^^^^^^^^^^^ cannot infer type
|
= note: cannot satisfy `_: std::default::Default`
note: required by `std::default::Default::default`
--> /home/Barugon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/default.rs:116:5
|
116 | fn default() -> Self;
| ^^^^^^^^^^^^^^^^^^^^^
error[E0283]: type annotations needed
--> src/jump_pad.rs:33:19
|
33 | body: Default::default(),
| ^^^^^^^^^^^^^^^^ cannot infer type
|
= note: cannot satisfy `_: std::default::Default`
note: required by `std::default::Default::default`
--> /home/Barugon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/default.rs:116:5
|
116 | fn default() -> Self;
| ^^^^^^^^^^^^^^^^^^^^^
error[E0282]: type annotations needed
--> src/level.rs:181:40
|
181 | proximity_events_receiver: None,
| ^^^^ cannot infer type for type parameter `T` declared on the enum `Option`
error[E0283]: type annotations needed
--> src/projectile.rs:93:19
|
93 | body: Default::default(),
| ^^^^^^^^^^^^^^^^ cannot infer type
|
= note: cannot satisfy `_: std::default::Default`
note: required by `std::default::Default::default`
--> /home/Barugon/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/default.rs:116:5
|
116 | fn default() -> Self;
| ^^^^^^^^^^^^^^^^^^^^^
Some errors have detailed explanations: E0282, E0283, E0412, E0422, E0432, E0433.
For more information about an error, try `rustc --explain E0282`.
warning: `rusty-shooter` (bin "rusty-shooter") generated 3 warnings
error: could not compile `rusty-shooter` due to 39 previous errors; 3 warnings emitted
Here are the build errors that I get: