Skip to content

Commit

Permalink
Merge pull request #45 from BlackPhlox/main
Browse files Browse the repository at this point in the history
Sync with main, updating readme
  • Loading branch information
BlackPhlox authored Dec 3, 2023
2 parents 521c597 + c076b4e commit 6df28db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ struct MainCamera;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
//..
.add_system(Dolly::<MainCamera>::update_active)
.add_system(Startup, setup)
.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 6df28db

Please sign in to comment.