3D Pan+Orbit Camera example in cookbook does not work with 0.12 #258
Labels
C-outdated
Outdated info in book
S-cookbook
Content in the Cookbook section
Z-medium
medium task that needs moderate time investment
Hi, I modified the PanOrbitCamera in the cookbook to work with 0.12, this is the solution I found to make it work, basically replacing windows: Res in pan_orbit_camera with windows:Query<&Window>.
Some of the constants have different values, but otherwise the code is almost identical.
I had to specify a WindowPlugin when creating the App, below is the code, feel free to modify/post it as you see fit. Hope it helps.
main.rs
camera.rs
The text was updated successfully, but these errors were encountered: