Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackPhlox authored Dec 3, 2023
1 parent e32c28a commit 889c396
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ fn main() {
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
//..
.add_system(Dolly::<MainCamera>::update_active)
.add_system(Update, Dolly::<MainCamera>::update_active)
.add_system(Update, update_input)
//..
.run();
}
Expand All @@ -81,7 +82,7 @@ fn setup(
MainCamera, // The rig component tag
Rig::builder() // The rig itself
.with(Position::new(Vec3::ZERO)) // Start position
// Adds a driver with method rotate_yaw_pitch
// Adds a driver with the method rotate_yaw_pitch
.with(YawPitch::new().yaw_degrees(45.0).pitch_degrees(-30.0))
// Interpolation when the translation is updated, also known as smoothing
.with(Smooth::new_position(0.3))
Expand Down

0 comments on commit 889c396

Please sign in to comment.