Skip to content

Extract examples CameraController into a module#11338

Merged
alice-i-cecile merged 2 commits intobevyengine:mainfrom
MiniaczQ:camera-controller-extracted
Jan 14, 2024
Merged

Extract examples CameraController into a module#11338
alice-i-cecile merged 2 commits intobevyengine:mainfrom
MiniaczQ:camera-controller-extracted

Conversation

@MiniaczQ
Copy link
Contributor

Objective

Unify flycam-style camera controller from the examples.

parallax_mapping controller was kept as is.

Solution

Fixed some mouse movement & cursor grabbing related issues too.

Copy link
Contributor

@IceSentry IceSentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shadow_biases example shows the controls with bevy_ui. Did you confirm they are the same controls? Alternatively it could be removed for anything that is related to camera controls.

@MiniaczQ
Copy link
Contributor Author

They were the same controls, but not even all of them. I removed them from UI

@matiqo15 matiqo15 added C-Examples An addition or correction to our examples C-Code-Quality A section of code that is hard to understand or change labels Jan 14, 2024
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to extract this for now to reduce duplication and make the examples more legible. Down the line, this should live in bevy_debug_tools IMO (see #11309).

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 14, 2024
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jan 14, 2024
Merged via the queue into bevyengine:main with commit ec5b9ee Jan 14, 2024
@MiniaczQ MiniaczQ deleted the camera-controller-extracted branch September 7, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Code-Quality A section of code that is hard to understand or change C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants