Tool for getting another perspective to the scene, also known as fly camera.
bevy_dev_.Debug.camera.for.Bevy.engine._.Fly.camera.mp4
Requires [crate::ui::DebugUiPlugin
] if ui
feature is enabled.
To move debug camera use:
W
- move forwardS
- move backwardA
- move leftD
- move rightE
- move upQ
- move down
Debug camera speed accelerates during flight, and can be multipled by mouse scrolling.
To rotate debug camera, user must move cursor in window.
Debug camera movement is similar to another game engines like Unity or Unreal Engine.
Controls can be modified via [crate::debug_camera::DebugCameraControls
].
When [crate::debug_camera::DebugCameraPlugin::switcher
] is set to default or active, program will be listen to user input to allow him to manage of debug cameras.
Pressing ShiftLeft
+ Tab
select last used debug camera. Every next clicking Tab
selecting next earlier and earlier debug camera, using wrapping. Switching is applied after release ShiftLeft
.
Switching works similar to
Alt
+Tab
in Microsoft Windows.
If any debug camera not exist, this shortcut will create, and switch to one from transform of current used camera.
Switching have their UI what visualize current state. Also if [crate::debug_camera::DebugCameraPlugin::show_preview
] is active, every debug camera show their preview as rendered image.
Preview is rendered only when
UI
is showed, and rendered in low resolution. Only one debug camera refresh their preview in one frame, what do not affect performance so much.
ShiftLeft
+ F1
create, and switch to new debug camera from transform of current used camera.
ShiftLeft
+ Escape
deactivate current use debug camera, and restore window to use previous game camera.
Controls can be modified via [crate::debug_camera::DebugCameraControls
].
When[crate::debug_camera::DebugCameraPlugin::spawn_debug_camera_if_any_camera_exist
] is active, then in every PostUpdate frame debug camera will be created, and used if any camera exists.