-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Freecam example #21477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freecam example #21477
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
|
Over all this looks solid to me, however here are a few things I noticed while testing this out: Opening this example, I am familiar with bevy's camera controls, but I think it would be useful to have the UI tell the user which keys manipulate the camera; Currently this only shows how to change the sensitivity and friction at runtime, but there are more knobs to turn on the fly cam. Personally, I think at least enabling and disabling the cam could be demonstrated, as well as mentioning |
|
Implemented your suggestions! |
alice-i-cecile
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this is pretty much exactly what I was hoping for. Thanks!
…is disabled (#21485) # Objective Fixes #21482 ## Solution Before exiting the system when the controller is disabled, check if either of the cursor grab flags are set and ungrab any windows if so. Note: I think it's a bit strange that the camera un-grabs every window, not just the one with focus, but I've just copied this behaviour from further down in the function. In this case, it might be more correct to do this anyway, since the controller might be disabled when the respective window isn't focused. ## Testing I used #21477 to test this
# Objective Addresses bevyengine#21467. ## Solution Adds the "free_cam_controller" example, that contains a simple scene with a camera controlled by the FreeCamPlugin. the code explains how to change the settings in the FreeCam component and the example provides bindings to change sensitivity and friction live. ## Testing `cargo run --example free_cam_controller --features="free_cam"` As this is my first contribution to the project, please let me know about any problems. --------- Co-authored-by: Alice Cecile <[email protected]>
…is disabled (bevyengine#21485) # Objective Fixes bevyengine#21482 ## Solution Before exiting the system when the controller is disabled, check if either of the cursor grab flags are set and ungrab any windows if so. Note: I think it's a bit strange that the camera un-grabs every window, not just the one with focus, but I've just copied this behaviour from further down in the function. In this case, it might be more correct to do this anyway, since the controller might be disabled when the respective window isn't focused. ## Testing I used bevyengine#21477 to test this
Objective
Addresses #21467.
Solution
Adds the "free_cam_controller" example, that contains a simple scene with a camera controlled by the FreeCamPlugin. the code explains how to change the settings in the FreeCam component and the example provides bindings to change sensitivity and friction live.
Testing
cargo run --example free_cam_controller --features="free_cam"As this is my first contribution to the project, please let me know about any problems.