Skip to content

Commit

Permalink
Fix typo in worms example
Browse files Browse the repository at this point in the history
Fix a typo in the `worms.rs` example, making all worms move in the same
direction instead of a random one.

Fixes #381
  • Loading branch information
djeedai committed Oct 17, 2024
1 parent 1ad6298 commit ef379b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/worms.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Worms
//!
//! Demonstrates simple use of particle trails.
//! Demonstrates a simple use of particle trails.

use std::f32::consts::{FRAC_PI_2, PI};
use std::f32::consts::FRAC_PI_2;

use bevy::{
core_pipeline::{bloom::BloomSettings, tonemapping::Tonemapping},
Expand Down Expand Up @@ -58,7 +58,7 @@ fn setup(
// scratch attribute.`
let set_initial_angle_modifier = SetAttributeModifier::new(
Attribute::F32_0,
writer.lit(0.0).normal(writer.lit(0.0)).expr(),
writer.lit(0.0).normal(writer.lit(1.0)).expr(),
);

// Give each particle a random opaque color.
Expand Down

0 comments on commit ef379b0

Please sign in to comment.