Skip to content

Mention the f64 feature flag in the main lib.rs doc comment #234

Mention the f64 feature flag in the main lib.rs doc comment

Mention the f64 feature flag in the main lib.rs doc comment #234

Triggered via push April 2, 2024 15:19
Status Success
Total duration 16m 38s
Artifacts

ci.yml

on: push
Matrix: Tests
Update Docs and Demos in GitHub Pages
14m 47s
Update Docs and Demos in GitHub Pages
Rustfmt
8s
Rustfmt
Fit to window
Zoom out
Zoom in

Annotations

170 warnings
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
associated function `make_system` is never used: demos/src/moving_platform.rs#L63
warning: associated function `make_system` is never used --> demos/src/moving_platform.rs:63:8 | 54 | impl MovingPlatform { | ------------------- associated function in this implementation ... 63 | fn make_system<V: Component>( | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unused variable: `setting_from_ui`: demos/src/ui/mod.rs#L229
warning: unused variable: `setting_from_ui` --> demos/src/ui/mod.rs:229:5 | 229 | setting_from_ui: Res<DemoUiPhysicsBackendActive>, | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_setting_from_ui`
unused variable: `app`: demos/src/moving_platform.rs#L7
warning: unused variable: `app` --> demos/src/moving_platform.rs:7:21 | 7 | fn build(&self, app: &mut App) { | ^^^ help: if this is intentional, prefix it with an underscore: `_app` | = note: `#[warn(unused_variables)]` on by default
returning the result of a `let` binding from a block: demos/src/bin/shooter_like.rs#L345
warning: returning the result of a `let` binding from a block --> demos/src/bin/shooter_like.rs:345:9 | 228 | / let command_altering_selectors = CommandAlteringSelectors::default() 229 | | // By default Tnua uses a raycast, but this could be a problem if the character stands 230 | | // just past the edge while part of its body is above the platform. To solve this, we 231 | | // need to cast a shape - which is physics-engine specific. We set the shape using a ... | 325 | | }, 326 | | ); | |______________- unnecessary `let` binding ... 345 | command_altering_selectors | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 228 ~ 229 | #[cfg(feature = "rapier3d")] ... 246 | ); 247 ~ CommandAlteringSelectors::default() 248 + // By default Tnua uses a raycast, but this could be a problem if the character stands 249 + // just past the edge while part of its body is above the platform. To solve this, we 250 + // need to cast a shape - which is physics-engine specific. We set the shape using a 251 + // component. 252 + .with_combo( 253 + "Sensor Shape", 254 + 1, 255 + &[ 256 + ("no", |mut cmd| { 257 + #[cfg(feature = "rapier3d")] 258 + cmd.remove::<TnuaRapier3dSensorShape>(); 259 + #[cfg(feature = "xpbd3d")] 260 + cmd.remove::<TnuaXpbd3dSensorShape>(); 261 + }), 262 + ("flat (underfit)", |mut cmd| { 263 + #[cfg(feature = "rapier3d")] 264 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 265 + 0.0, 0.49, 266 + ))); 267 + #[cfg(feature = "xpbd3d")] 268 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49))); 269 + }), 270 + ("flat (exact)", |mut cmd| { 271 + #[cfg(feature = "rapier3d")] 272 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 273 + 0.0, 0.5, 274 + ))); 275 + #[cfg(feature = "xpbd3d")] 276 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5))); 277 + }), 278 + ("flat (overfit)", |mut cmd| { 279 + #[cfg(feature = "rapier3d")] 280 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 281 + 0.0, 0.51, 282 + ))); 283 + #[cfg(feature = "xpbd3d")] 284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51))); 285 + }), 286 + ("ball (underfit)", |mut cmd| { 287 + #[cfg(feature = "rapier3d")] 288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49))); 289 + #[cfg(feature = "xpbd3d")] 290 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49))); 291 + }), 292 + ("ball (exact)", |mut cmd| { 293 + #[cfg(feature = "rapier3d")] 294 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5))); 295 + #[cfg(feature = "xpbd3d")] 296 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5))); 297 + }), 298 + ], 299 + ) 300 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { 301 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make 302 + // the character stand upward, but it is also possible to just let the physics 303 + // engine prevent rotation (other than around the Y axis, for turning) 304 + if lock_tilt { 305 + #[cfg(feature = "rapier3d")] 306 + cmd.insert( 307 + rapier::LockedAxes::ROTATION_LOCKED_X 308 + | rapier::LockedAxes::ROTATION_LOCKED_Z, 309 + ); 310 + #[cfg(feature = "xpbd3d")] 311 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z()); 312 + } else { 313 + #[cfg(feature = "rapier3d")] 314 + cmd.insert(rapier::LockedAxes::empty()); 315 + #[cfg(feature = "xpbd3d")] 316 + cmd.insert(xpbd::LockedAxes::new()); 317 + } 318 + }) 319 + .with_checkbox( 320 + "Phase Through Collision Groups", 321 + true, 322 + |mut cmd, use_collision_groups| { 323 + #[cfg(feature = "rapier3d")] 324 + if use_collision_groups { 325 + cmd.insert(CollisionGroups { 326 + memberships: Group::GROUP_2, 327 + filters: Group::GROUP_2, 328 + }); 329 + } else { 330 + cmd.insert(CollisionGroups { 331 + memberships: Group::ALL, 332 + filters: Group::ALL, 333 + }); 334 + } 335 + #[cfg(feature = "xpbd3d")] 336 + { 337 + let player_layers: LayerMask = if use_collision_groups { 338 + [LayerNames::Player].into() 339 + } else { 340 + [LayerNames::Player, LayerNames::PhaseThrough].into() 341 + }; 342 + cmd.insert(CollisionLayers::new(player_layers, player_layers)); 343 + } 344 + }, 345 + ) |
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L303
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:303:18 | 303 | |mut cmd, use_collision_groups| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L281
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:281:48 | 281 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L273
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:273:39 | 273 | ("ball (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L267
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:267:42 | 267 | ("ball (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L259
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:259:41 | 259 | ("flat (overfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L251
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:251:39 | 251 | ("flat (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L243
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:243:42 | 243 | ("flat (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L237
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:237:29 | 237 | ("no", |mut cmd| { | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L349
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:349:59 | 349 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `use_collision_groups`: demos/src/bin/shooter_like.rs#L303
warning: unused variable: `use_collision_groups` --> demos/src/bin/shooter_like.rs:303:27 | 303 | |mut cmd, use_collision_groups| { | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L303
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:303:22 | 303 | |mut cmd, use_collision_groups| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L281
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:281:52 | 281 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L273
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:273:43 | 273 | ("ball (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L267
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:267:46 | 267 | ("ball (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L259
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:259:45 | 259 | ("flat (overfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L251
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:251:43 | 251 | ("flat (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L243
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:243:46 | 243 | ("flat (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L237
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:237:33 | 237 | ("no", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` | = note: `#[warn(unused_variables)]` on by default
unused import: `make_update_plot_data_system`: demos/src/ui/mod.rs#L22
warning: unused import: `make_update_plot_data_system` --> demos/src/ui/mod.rs:22:22 | 22 | use self::plotting::{make_update_plot_data_system, plot_source_rolling_update}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
returning the result of a `let` binding from a block: demos/src/bin/platformer_3d.rs#L339
warning: returning the result of a `let` binding from a block --> demos/src/bin/platformer_3d.rs:339:9 | 222 | / let command_altering_selectors = CommandAlteringSelectors::default() 223 | | // By default Tnua uses a raycast, but this could be a problem if the character stands 224 | | // just past the edge while part of its body is above the platform. To solve this, we 225 | | // need to cast a shape - which is physics-engine specific. We set the shape using a ... | 319 | | }, 320 | | ); | |______________- unnecessary `let` binding ... 339 | command_altering_selectors | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 222 ~ 223 | #[cfg(feature = "rapier3d")] ... 240 | ); 241 ~ CommandAlteringSelectors::default() 242 + // By default Tnua uses a raycast, but this could be a problem if the character stands 243 + // just past the edge while part of its body is above the platform. To solve this, we 244 + // need to cast a shape - which is physics-engine specific. We set the shape using a 245 + // component. 246 + .with_combo( 247 + "Sensor Shape", 248 + 1, 249 + &[ 250 + ("no", |mut cmd| { 251 + #[cfg(feature = "rapier3d")] 252 + cmd.remove::<TnuaRapier3dSensorShape>(); 253 + #[cfg(feature = "xpbd3d")] 254 + cmd.remove::<TnuaXpbd3dSensorShape>(); 255 + }), 256 + ("flat (underfit)", |mut cmd| { 257 + #[cfg(feature = "rapier3d")] 258 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 259 + 0.0, 0.49, 260 + ))); 261 + #[cfg(feature = "xpbd3d")] 262 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49))); 263 + }), 264 + ("flat (exact)", |mut cmd| { 265 + #[cfg(feature = "rapier3d")] 266 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 267 + 0.0, 0.5, 268 + ))); 269 + #[cfg(feature = "xpbd3d")] 270 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5))); 271 + }), 272 + ("flat (overfit)", |mut cmd| { 273 + #[cfg(feature = "rapier3d")] 274 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 275 + 0.0, 0.51, 276 + ))); 277 + #[cfg(feature = "xpbd3d")] 278 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51))); 279 + }), 280 + ("ball (underfit)", |mut cmd| { 281 + #[cfg(feature = "rapier3d")] 282 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49))); 283 + #[cfg(feature = "xpbd3d")] 284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49))); 285 + }), 286 + ("ball (exact)", |mut cmd| { 287 + #[cfg(feature = "rapier3d")] 288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5))); 289 + #[cfg(feature = "xpbd3d")] 290 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5))); 291 + }), 292 + ], 293 + ) 294 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { 295 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make 296 + // the character stand upward, but it is also possible to just let the physics 297 + // engine prevent rotation (other than around the Y axis, for turning) 298 + if lock_tilt { 299 + #[cfg(feature = "rapier3d")] 300 + cmd.insert( 301 + rapier::LockedAxes::ROTATION_LOCKED_X 302 + | rapier::LockedAxes::ROTATION_LOCKED_Z, 303 + ); 304 + #[cfg(feature = "xpbd3d")] 305 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z()); 306 + } else { 307 + #[cfg(feature = "rapier3d")] 308 + cmd.insert(rapier::LockedAxes::empty()); 309 + #[cfg(feature = "xpbd3d")] 310 + cmd.insert(xpbd::LockedAxes::new()); 311 + } 312 + }) 313 + .with_checkbox( 314 + "Phase Through Collision Groups", 315 + true, 316 + |mut cmd, use_collision_groups| { 317 + #[cfg(feature = "rapier3d")] 318 + if use_collision_groups { 319 + cmd.insert(CollisionGroups { 320 + memberships: Group::GROUP_2, 321 + filters: Group::GROUP_2, 322 + }); 323 + } else { 324 + cmd.insert(CollisionGroups { 325 + memberships: Group::ALL, 326 + filters: Group::ALL, 327 + }); 328 + } 329 + #[cfg(feature = "xpbd3d")] 330 + { 331 + let player_layers: LayerMask = if use_collision_groups { 332 + [LayerNames::Player].into() 333 + } else { 334 + [LayerNames::Player, LayerNames::PhaseThrough].into() 335 + }; 336 + cmd.insert(CollisionLayers::new(player_layers, player_layers)); 337 + } 338 + }, 339 + ) |
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L297
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:297:18 | 297 | |mut cmd, use_collision_groups| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L275
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:275:48 | 275 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L267
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:267:39 | 267 | ("ball (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L261
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:261:42 | 261 | ("ball (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L253
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:253:41 | 253 | ("flat (overfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L245
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:245:39 | 245 | ("flat (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L237
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:237:42 | 237 | ("flat (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L231
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:231:29 | 231 | ("no", |mut cmd| { | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L343
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:343:59 | 343 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `use_collision_groups`: demos/src/bin/platformer_3d.rs#L297
warning: unused variable: `use_collision_groups` --> demos/src/bin/platformer_3d.rs:297:27 | 297 | |mut cmd, use_collision_groups| { | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L297
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:297:22 | 297 | |mut cmd, use_collision_groups| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L275
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:275:52 | 275 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L267
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:267:43 | 267 | ("ball (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L261
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:261:46 | 261 | ("ball (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L253
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:253:45 | 253 | ("flat (overfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L245
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:245:43 | 245 | ("flat (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L237
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:237:46 | 237 | ("flat (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L231
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:231:33 | 231 | ("no", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` | = note: `#[warn(unused_variables)]` on by default
returning the result of a `let` binding from a block: demos/src/bin/platformer_3d.rs#L339
warning: returning the result of a `let` binding from a block --> demos/src/bin/platformer_3d.rs:339:9 | 222 | / let command_altering_selectors = CommandAlteringSelectors::default() 223 | | // By default Tnua uses a raycast, but this could be a problem if the character stands 224 | | // just past the edge while part of its body is above the platform. To solve this, we 225 | | // need to cast a shape - which is physics-engine specific. We set the shape using a ... | 319 | | }, 320 | | ); | |______________- unnecessary `let` binding ... 339 | command_altering_selectors | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 222 ~ 223 | #[cfg(feature = "rapier3d")] ... 240 | ); 241 ~ CommandAlteringSelectors::default() 242 + // By default Tnua uses a raycast, but this could be a problem if the character stands 243 + // just past the edge while part of its body is above the platform. To solve this, we 244 + // need to cast a shape - which is physics-engine specific. We set the shape using a 245 + // component. 246 + .with_combo( 247 + "Sensor Shape", 248 + 1, 249 + &[ 250 + ("no", |mut cmd| { 251 + #[cfg(feature = "rapier3d")] 252 + cmd.remove::<TnuaRapier3dSensorShape>(); 253 + #[cfg(feature = "xpbd3d")] 254 + cmd.remove::<TnuaXpbd3dSensorShape>(); 255 + }), 256 + ("flat (underfit)", |mut cmd| { 257 + #[cfg(feature = "rapier3d")] 258 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 259 + 0.0, 0.49, 260 + ))); 261 + #[cfg(feature = "xpbd3d")] 262 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49))); 263 + }), 264 + ("flat (exact)", |mut cmd| { 265 + #[cfg(feature = "rapier3d")] 266 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 267 + 0.0, 0.5, 268 + ))); 269 + #[cfg(feature = "xpbd3d")] 270 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5))); 271 + }), 272 + ("flat (overfit)", |mut cmd| { 273 + #[cfg(feature = "rapier3d")] 274 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 275 + 0.0, 0.51, 276 + ))); 277 + #[cfg(feature = "xpbd3d")] 278 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51))); 279 + }), 280 + ("ball (underfit)", |mut cmd| { 281 + #[cfg(feature = "rapier3d")] 282 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49))); 283 + #[cfg(feature = "xpbd3d")] 284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49))); 285 + }), 286 + ("ball (exact)", |mut cmd| { 287 + #[cfg(feature = "rapier3d")] 288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5))); 289 + #[cfg(feature = "xpbd3d")] 290 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5))); 291 + }), 292 + ], 293 + ) 294 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { 295 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make 296 + // the character stand upward, but it is also possible to just let the physics 297 + // engine prevent rotation (other than around the Y axis, for turning) 298 + if lock_tilt { 299 + #[cfg(feature = "rapier3d")] 300 + cmd.insert( 301 + rapier::LockedAxes::ROTATION_LOCKED_X 302 + | rapier::LockedAxes::ROTATION_LOCKED_Z, 303 + ); 304 + #[cfg(feature = "xpbd3d")] 305 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z()); 306 + } else { 307 + #[cfg(feature = "rapier3d")] 308 + cmd.insert(rapier::LockedAxes::empty()); 309 + #[cfg(feature = "xpbd3d")] 310 + cmd.insert(xpbd::LockedAxes::new()); 311 + } 312 + }) 313 + .with_checkbox( 314 + "Phase Through Collision Groups", 315 + true, 316 + |mut cmd, use_collision_groups| { 317 + #[cfg(feature = "rapier3d")] 318 + if use_collision_groups { 319 + cmd.insert(CollisionGroups { 320 + memberships: Group::GROUP_2, 321 + filters: Group::GROUP_2, 322 + }); 323 + } else { 324 + cmd.insert(CollisionGroups { 325 + memberships: Group::ALL, 326 + filters: Group::ALL, 327 + }); 328 + } 329 + #[cfg(feature = "xpbd3d")] 330 + { 331 + let player_layers: LayerMask = if use_collision_groups { 332 + [LayerNames::Player].into() 333 + } else { 334 + [LayerNames::Player, LayerNames::PhaseThrough].into() 335 + }; 336 + cmd.insert(CollisionLayers::new(player_layers, player_layers)); 337 + } 338 + }, 339 + ) |
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L297
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:297:18 | 297 | |mut cmd, use_collision_groups| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L275
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:275:48 | 275 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L267
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:267:39 | 267 | ("ball (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L261
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:261:42 | 261 | ("ball (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L253
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:253:41 | 253 | ("flat (overfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L245
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:245:39 | 245 | ("flat (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L237
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:237:42 | 237 | ("flat (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_3d.rs#L231
warning: variable does not need to be mutable --> demos/src/bin/platformer_3d.rs:231:29 | 231 | ("no", |mut cmd| { | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L343
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:343:59 | 343 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `use_collision_groups`: demos/src/bin/platformer_3d.rs#L297
warning: unused variable: `use_collision_groups` --> demos/src/bin/platformer_3d.rs:297:27 | 297 | |mut cmd, use_collision_groups| { | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L297
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:297:22 | 297 | |mut cmd, use_collision_groups| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L275
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:275:52 | 275 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L267
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:267:43 | 267 | ("ball (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L261
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:261:46 | 261 | ("ball (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L253
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:253:45 | 253 | ("flat (overfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L245
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:245:43 | 245 | ("flat (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L237
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:237:46 | 237 | ("flat (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_3d.rs#L231
warning: unused variable: `cmd` --> demos/src/bin/platformer_3d.rs:231:33 | 231 | ("no", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` | = note: `#[warn(unused_variables)]` on by default
returning the result of a `let` binding from a block: demos/src/bin/platformer_2d.rs#L315
warning: returning the result of a `let` binding from a block --> demos/src/bin/platformer_2d.rs:315:9 | 205 | / let command_altering_selectors = CommandAlteringSelectors::default() 206 | | // By default Tnua uses a raycast, but this could be a problem if the character stands 207 | | // just past the edge while part of its body is above the platform. To solve this, we 208 | | // need to cast a shape - which is physics-engine specific. We set the shape using a ... | 293 | | }, 294 | | ); | |______________- unnecessary `let` binding ... 315 | command_altering_selectors | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 205 ~ 206 | #[cfg(feature = "rapier2d")] ... 225 | ); 226 ~ CommandAlteringSelectors::default() 227 + // By default Tnua uses a raycast, but this could be a problem if the character stands 228 + // just past the edge while part of its body is above the platform. To solve this, we 229 + // need to cast a shape - which is physics-engine specific. We set the shape using a 230 + // component. 231 + .with_combo( 232 + "Sensor Shape", 233 + 1, 234 + &[ 235 + ("Point", |mut cmd| { 236 + #[cfg(feature = "rapier2d")] 237 + cmd.remove::<TnuaRapier2dSensorShape>(); 238 + #[cfg(feature = "xpbd2d")] 239 + cmd.remove::<TnuaXpbd2dSensorShape>(); 240 + }), 241 + ("Flat (underfit)", |mut cmd| { 242 + #[cfg(feature = "rapier2d")] 243 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.49, 0.0))); 244 + #[cfg(feature = "xpbd2d")] 245 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(0.99, 0.0))); 246 + }), 247 + ("Flat (exact)", |mut cmd| { 248 + #[cfg(feature = "rapier2d")] 249 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.5, 0.0))); 250 + #[cfg(feature = "xpbd2d")] 251 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.0, 0.0))); 252 + }), 253 + ("flat (overfit)", |mut cmd| { 254 + #[cfg(feature = "rapier2d")] 255 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.51, 0.0))); 256 + #[cfg(feature = "xpbd2d")] 257 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.01, 0.0))); 258 + }), 259 + ("Ball (underfit)", |mut cmd| { 260 + #[cfg(feature = "rapier2d")] 261 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.49))); 262 + #[cfg(feature = "xpbd2d")] 263 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.49))); 264 + }), 265 + ("Ball (exact)", |mut cmd| { 266 + #[cfg(feature = "rapier2d")] 267 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.5))); 268 + #[cfg(feature = "xpbd2d")] 269 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.5))); 270 + }), 271 + ], 272 + ) 273 + .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| { 274 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make 275 + // the character stand upward, but it is also possible to just let the physics 276 + // engine prevent rotation (other than around the Y axis, for turning) 277 + if lock_tilt { 278 + #[cfg(feature = "rapier2d")] 279 + cmd.insert(rapier::LockedAxes::ROTATION_LOCKED); 280 + #[cfg(feature = "xpbd2d")] 281 + cmd.insert(xpbd::LockedAxes::new().lock_rotation()); 282 + } else { 283 + #[cfg(feature = "rapier2d")] 284 + cmd.insert(rapier::LockedAxes::empty()); 285 + #[cfg(feature = "xpbd2d")] 286 + cmd.insert(xpbd::LockedAxes::new()); 287 + } 288 + }) 289 + .with_checkbox( 290 + "Phase Through Collision Groups", 291 + true, 292 + |mut cmd, use_collision_groups| { 293 + #[cfg(feature = "rapier2d")] 294 + if use_collision_groups { 295 + cmd.insert(CollisionGroups { 296 + memberships: Group::GROUP_2, 297 + filters: Group::GROUP_2, 298 + }); 299 + } else { 300 + cmd.insert(CollisionGroups { 301 + memberships: Group::ALL, 302 + filters: Group::ALL, 303 + }); 304 + } 305 + #[cfg(feature = "xpbd2d")] 306 + { 307 + let player_layers: LayerMask = if use_collision_groups { 308 + [LayerNames::Player].into() 309 + } else { 310 + [LayerNames::Player, LayerNames::PhaseThrough].into() 311 + }; 312 + cmd.insert(CollisionLayers::new(player_layers, player_layers)); 313 + } 314 + }, 315 + ) |
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L271
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:271:18 | 271 | |mut cmd, use_collision_groups| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L252
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:252:49 | 252 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L244
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:244:39 | 244 | ("Ball (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L238
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:238:42 | 238 | ("Ball (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L232
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:232:41 | 232 | ("flat (overfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L226
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:226:39 | 226 | ("Flat (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L220
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:220:42 | 220 | ("Flat (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L214
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:214:32 | 214 | ("Point", |mut cmd| { | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L319
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:319:59 | 319 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `use_collision_groups`: demos/src/bin/platformer_2d.rs#L271
warning: unused variable: `use_collision_groups` --> demos/src/bin/platformer_2d.rs:271:27 | 271 | |mut cmd, use_collision_groups| { | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L271
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:271:22 | 271 | |mut cmd, use_collision_groups| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L252
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:252:53 | 252 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L244
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:244:43 | 244 | ("Ball (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L238
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:238:46 | 238 | ("Ball (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L232
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:232:45 | 232 | ("flat (overfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L226
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:226:43 | 226 | ("Flat (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L220
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:220:46 | 220 | ("Flat (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L214
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:214:36 | 214 | ("Point", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` | = note: `#[warn(unused_variables)]` on by default
returning the result of a `let` binding from a block: demos/src/bin/shooter_like.rs#L345
warning: returning the result of a `let` binding from a block --> demos/src/bin/shooter_like.rs:345:9 | 228 | / let command_altering_selectors = CommandAlteringSelectors::default() 229 | | // By default Tnua uses a raycast, but this could be a problem if the character stands 230 | | // just past the edge while part of its body is above the platform. To solve this, we 231 | | // need to cast a shape - which is physics-engine specific. We set the shape using a ... | 325 | | }, 326 | | ); | |______________- unnecessary `let` binding ... 345 | command_altering_selectors | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 228 ~ 229 | #[cfg(feature = "rapier3d")] ... 246 | ); 247 ~ CommandAlteringSelectors::default() 248 + // By default Tnua uses a raycast, but this could be a problem if the character stands 249 + // just past the edge while part of its body is above the platform. To solve this, we 250 + // need to cast a shape - which is physics-engine specific. We set the shape using a 251 + // component. 252 + .with_combo( 253 + "Sensor Shape", 254 + 1, 255 + &[ 256 + ("no", |mut cmd| { 257 + #[cfg(feature = "rapier3d")] 258 + cmd.remove::<TnuaRapier3dSensorShape>(); 259 + #[cfg(feature = "xpbd3d")] 260 + cmd.remove::<TnuaXpbd3dSensorShape>(); 261 + }), 262 + ("flat (underfit)", |mut cmd| { 263 + #[cfg(feature = "rapier3d")] 264 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 265 + 0.0, 0.49, 266 + ))); 267 + #[cfg(feature = "xpbd3d")] 268 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.49))); 269 + }), 270 + ("flat (exact)", |mut cmd| { 271 + #[cfg(feature = "rapier3d")] 272 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 273 + 0.0, 0.5, 274 + ))); 275 + #[cfg(feature = "xpbd3d")] 276 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.5))); 277 + }), 278 + ("flat (overfit)", |mut cmd| { 279 + #[cfg(feature = "rapier3d")] 280 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::cylinder( 281 + 0.0, 0.51, 282 + ))); 283 + #[cfg(feature = "xpbd3d")] 284 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::cylinder(0.0, 0.51))); 285 + }), 286 + ("ball (underfit)", |mut cmd| { 287 + #[cfg(feature = "rapier3d")] 288 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.49))); 289 + #[cfg(feature = "xpbd3d")] 290 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.49))); 291 + }), 292 + ("ball (exact)", |mut cmd| { 293 + #[cfg(feature = "rapier3d")] 294 + cmd.insert(TnuaRapier3dSensorShape(rapier::Collider::ball(0.5))); 295 + #[cfg(feature = "xpbd3d")] 296 + cmd.insert(TnuaXpbd3dSensorShape(xpbd::Collider::sphere(0.5))); 297 + }), 298 + ], 299 + ) 300 + .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { 301 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make 302 + // the character stand upward, but it is also possible to just let the physics 303 + // engine prevent rotation (other than around the Y axis, for turning) 304 + if lock_tilt { 305 + #[cfg(feature = "rapier3d")] 306 + cmd.insert( 307 + rapier::LockedAxes::ROTATION_LOCKED_X 308 + | rapier::LockedAxes::ROTATION_LOCKED_Z, 309 + ); 310 + #[cfg(feature = "xpbd3d")] 311 + cmd.insert(xpbd::LockedAxes::new().lock_rotation_x().lock_rotation_z()); 312 + } else { 313 + #[cfg(feature = "rapier3d")] 314 + cmd.insert(rapier::LockedAxes::empty()); 315 + #[cfg(feature = "xpbd3d")] 316 + cmd.insert(xpbd::LockedAxes::new()); 317 + } 318 + }) 319 + .with_checkbox( 320 + "Phase Through Collision Groups", 321 + true, 322 + |mut cmd, use_collision_groups| { 323 + #[cfg(feature = "rapier3d")] 324 + if use_collision_groups { 325 + cmd.insert(CollisionGroups { 326 + memberships: Group::GROUP_2, 327 + filters: Group::GROUP_2, 328 + }); 329 + } else { 330 + cmd.insert(CollisionGroups { 331 + memberships: Group::ALL, 332 + filters: Group::ALL, 333 + }); 334 + } 335 + #[cfg(feature = "xpbd3d")] 336 + { 337 + let player_layers: LayerMask = if use_collision_groups { 338 + [LayerNames::Player].into() 339 + } else { 340 + [LayerNames::Player, LayerNames::PhaseThrough].into() 341 + }; 342 + cmd.insert(CollisionLayers::new(player_layers, player_layers)); 343 + } 344 + }, 345 + ) |
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L303
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:303:18 | 303 | |mut cmd, use_collision_groups| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L281
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:281:48 | 281 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L273
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:273:39 | 273 | ("ball (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L267
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:267:42 | 267 | ("ball (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L259
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:259:41 | 259 | ("flat (overfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L251
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:251:39 | 251 | ("flat (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L243
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:243:42 | 243 | ("flat (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/shooter_like.rs#L237
warning: variable does not need to be mutable --> demos/src/bin/shooter_like.rs:237:29 | 237 | ("no", |mut cmd| { | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L349
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:349:59 | 349 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `use_collision_groups`: demos/src/bin/shooter_like.rs#L303
warning: unused variable: `use_collision_groups` --> demos/src/bin/shooter_like.rs:303:27 | 303 | |mut cmd, use_collision_groups| { | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L303
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:303:22 | 303 | |mut cmd, use_collision_groups| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L281
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:281:52 | 281 | .with_checkbox("Lock Tilt", true, |mut cmd, lock_tilt| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L273
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:273:43 | 273 | ("ball (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L267
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:267:46 | 267 | ("ball (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L259
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:259:45 | 259 | ("flat (overfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L251
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:251:43 | 251 | ("flat (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L243
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:243:46 | 243 | ("flat (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/shooter_like.rs#L237
warning: unused variable: `cmd` --> demos/src/bin/shooter_like.rs:237:33 | 237 | ("no", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` | = note: `#[warn(unused_variables)]` on by default
returning the result of a `let` binding from a block: demos/src/bin/platformer_2d.rs#L315
warning: returning the result of a `let` binding from a block --> demos/src/bin/platformer_2d.rs:315:9 | 205 | / let command_altering_selectors = CommandAlteringSelectors::default() 206 | | // By default Tnua uses a raycast, but this could be a problem if the character stands 207 | | // just past the edge while part of its body is above the platform. To solve this, we 208 | | // need to cast a shape - which is physics-engine specific. We set the shape using a ... | 293 | | }, 294 | | ); | |______________- unnecessary `let` binding ... 315 | command_altering_selectors | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return = note: `#[warn(clippy::let_and_return)]` on by default help: return the expression directly | 205 ~ 206 | #[cfg(feature = "rapier2d")] ... 225 | ); 226 ~ CommandAlteringSelectors::default() 227 + // By default Tnua uses a raycast, but this could be a problem if the character stands 228 + // just past the edge while part of its body is above the platform. To solve this, we 229 + // need to cast a shape - which is physics-engine specific. We set the shape using a 230 + // component. 231 + .with_combo( 232 + "Sensor Shape", 233 + 1, 234 + &[ 235 + ("Point", |mut cmd| { 236 + #[cfg(feature = "rapier2d")] 237 + cmd.remove::<TnuaRapier2dSensorShape>(); 238 + #[cfg(feature = "xpbd2d")] 239 + cmd.remove::<TnuaXpbd2dSensorShape>(); 240 + }), 241 + ("Flat (underfit)", |mut cmd| { 242 + #[cfg(feature = "rapier2d")] 243 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.49, 0.0))); 244 + #[cfg(feature = "xpbd2d")] 245 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(0.99, 0.0))); 246 + }), 247 + ("Flat (exact)", |mut cmd| { 248 + #[cfg(feature = "rapier2d")] 249 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.5, 0.0))); 250 + #[cfg(feature = "xpbd2d")] 251 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.0, 0.0))); 252 + }), 253 + ("flat (overfit)", |mut cmd| { 254 + #[cfg(feature = "rapier2d")] 255 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::cuboid(0.51, 0.0))); 256 + #[cfg(feature = "xpbd2d")] 257 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::rectangle(1.01, 0.0))); 258 + }), 259 + ("Ball (underfit)", |mut cmd| { 260 + #[cfg(feature = "rapier2d")] 261 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.49))); 262 + #[cfg(feature = "xpbd2d")] 263 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.49))); 264 + }), 265 + ("Ball (exact)", |mut cmd| { 266 + #[cfg(feature = "rapier2d")] 267 + cmd.insert(TnuaRapier2dSensorShape(rapier::Collider::ball(0.5))); 268 + #[cfg(feature = "xpbd2d")] 269 + cmd.insert(TnuaXpbd2dSensorShape(xpbd::Collider::circle(0.5))); 270 + }), 271 + ], 272 + ) 273 + .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| { 274 + // Tnua will automatically apply angular impulses/forces to fix the tilt and make 275 + // the character stand upward, but it is also possible to just let the physics 276 + // engine prevent rotation (other than around the Y axis, for turning) 277 + if lock_tilt { 278 + #[cfg(feature = "rapier2d")] 279 + cmd.insert(rapier::LockedAxes::ROTATION_LOCKED); 280 + #[cfg(feature = "xpbd2d")] 281 + cmd.insert(xpbd::LockedAxes::new().lock_rotation()); 282 + } else { 283 + #[cfg(feature = "rapier2d")] 284 + cmd.insert(rapier::LockedAxes::empty()); 285 + #[cfg(feature = "xpbd2d")] 286 + cmd.insert(xpbd::LockedAxes::new()); 287 + } 288 + }) 289 + .with_checkbox( 290 + "Phase Through Collision Groups", 291 + true, 292 + |mut cmd, use_collision_groups| { 293 + #[cfg(feature = "rapier2d")] 294 + if use_collision_groups { 295 + cmd.insert(CollisionGroups { 296 + memberships: Group::GROUP_2, 297 + filters: Group::GROUP_2, 298 + }); 299 + } else { 300 + cmd.insert(CollisionGroups { 301 + memberships: Group::ALL, 302 + filters: Group::ALL, 303 + }); 304 + } 305 + #[cfg(feature = "xpbd2d")] 306 + { 307 + let player_layers: LayerMask = if use_collision_groups { 308 + [LayerNames::Player].into() 309 + } else { 310 + [LayerNames::Player, LayerNames::PhaseThrough].into() 311 + }; 312 + cmd.insert(CollisionLayers::new(player_layers, player_layers)); 313 + } 314 + }, 315 + ) |
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L271
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:271:18 | 271 | |mut cmd, use_collision_groups| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L252
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:252:49 | 252 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L244
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:244:39 | 244 | ("Ball (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L238
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:238:42 | 238 | ("Ball (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L232
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:232:41 | 232 | ("flat (overfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L226
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:226:39 | 226 | ("Flat (exact)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L220
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:220:42 | 220 | ("Flat (underfit)", |mut cmd| { | ----^^^ | | | help: remove this `mut`
variable does not need to be mutable: demos/src/bin/platformer_2d.rs#L214
warning: variable does not need to be mutable --> demos/src/bin/platformer_2d.rs:214:32 | 214 | ("Point", |mut cmd| { | ----^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L319
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:319:59 | 319 | cmd.insert(TnuaCrouchEnforcer::new(0.5 * Vector3::Y, |cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `use_collision_groups`: demos/src/bin/platformer_2d.rs#L271
warning: unused variable: `use_collision_groups` --> demos/src/bin/platformer_2d.rs:271:27 | 271 | |mut cmd, use_collision_groups| { | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_use_collision_groups`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L271
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:271:22 | 271 | |mut cmd, use_collision_groups| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L252
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:252:53 | 252 | .with_checkbox("Lock Tilt", false, |mut cmd, lock_tilt| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L244
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:244:43 | 244 | ("Ball (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L238
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:238:46 | 238 | ("Ball (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L232
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:232:45 | 232 | ("flat (overfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L226
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:226:43 | 226 | ("Flat (exact)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L220
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:220:46 | 220 | ("Flat (underfit)", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd`
unused variable: `cmd`: demos/src/bin/platformer_2d.rs#L214
warning: unused variable: `cmd` --> demos/src/bin/platformer_2d.rs:214:36 | 214 | ("Point", |mut cmd| { | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` | = note: `#[warn(unused_variables)]` on by default
associated function `make_system` is never used: demos/src/moving_platform.rs#L63
warning: associated function `make_system` is never used --> demos/src/moving_platform.rs:63:8 | 54 | impl MovingPlatform { | ------------------- associated function in this implementation ... 63 | fn make_system<V: Component>( | ^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unused variable: `setting_from_ui`: demos/src/ui/mod.rs#L229
warning: unused variable: `setting_from_ui` --> demos/src/ui/mod.rs:229:5 | 229 | setting_from_ui: Res<DemoUiPhysicsBackendActive>, | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_setting_from_ui`
unused variable: `app`: demos/src/moving_platform.rs#L7
warning: unused variable: `app` --> demos/src/moving_platform.rs:7:21 | 7 | fn build(&self, app: &mut App) { | ^^^ help: if this is intentional, prefix it with an underscore: `_app` | = note: `#[warn(unused_variables)]` on by default
unused import: `make_update_plot_data_system`: demos/src/ui/mod.rs#L22
warning: unused import: `make_update_plot_data_system` --> demos/src/ui/mod.rs:22:22 | 22 | use self::plotting::{make_update_plot_data_system, plot_source_rolling_update}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, 1.76.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, 1.76.0)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, 1.76.0)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, nightly)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Tests (ubuntu-latest, nightly)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Tests (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Docs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Docs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Docs: demos/src/ui/mod.rs#L22
unused import: `make_update_plot_data_system`
Docs: demos/src/moving_platform.rs#L7
unused variable: `app`
Docs: demos/src/ui/mod.rs#L229
unused variable: `setting_from_ui`
Docs: demos/src/moving_platform.rs#L63
associated function `make_system` is never used
Docs
`tnua-demos-crate` (lib) generated 4 warnings (run `cargo fix --lib -p tnua-demos-crate` to apply 3 suggestions)
Docs: demos/src/ui/mod.rs#L22
unused import: `make_update_plot_data_system`
Docs: demos/src/moving_platform.rs#L7
unused variable: `app`
Docs: demos/src/ui/mod.rs#L229
unused variable: `setting_from_ui`
Docs: demos/src/moving_platform.rs#L63
associated function `make_system` is never used
Docs
`tnua-demos-crate` (lib) generated 4 warnings (run `cargo fix --lib -p tnua-demos-crate` to apply 3 suggestions)
Update Docs and Demos in GitHub Pages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, jetli/[email protected], actions-rs/toolchain@v1, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Update Docs and Demos in GitHub Pages
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, jetli/[email protected], actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Update Docs and Demos in GitHub Pages
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
deploy-ghpages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/deploy-pages@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
deploy-ghpages
Uploaded artifact size of 1953454080 bytes exceeds the allowed size of 1 GB. Deployment might fail.