bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.73k stars 3.61k forks source link

Add a test fly camera #6141

Closed coffeeispower closed 8 months ago

coffeeispower commented 2 years ago

What problem does this solve or what need does it fill?

This would be useful for 3d games to see the objects before you code the movement system, you're maybe you're just testing something and you don't want to implement a whole fly camera from scratch

What solution would you like?

Add a built-in fly camera plugin on the engine

Additional context

There's a crate called bevy_fly_camera, but it doesn't seem very active and it aged like milk, the bevy version is kinda old and the documentation is outdated, some bevy apis have been renamed, so if we include this in bevy, it would a lot easier for developers to just get up and running with a test 3d program/game

Edwox commented 2 years ago

Hi, I would love to try and create a test fly camera.

mockersf commented 2 years ago

There is one in an example: https://github.com/bevyengine/bevy/blob/main/examples/tools/scene_viewer.rs

There are also a few other plugins available, you can find them at https://bevyengine.org/assets/. For example bevy_pancam, smooth-bevy-cameras or bevy_flycam seem to be updated for Bevy 0.8

Before adding one officially in Bevy, there would need to be a discussion on the API...

DGriffin91 commented 2 years ago

There's also this PR: https://github.com/bevyengine/bevy/pull/4458/

coffeeispower commented 2 years ago

@mockersf but I proposed to add to the bevy game engine, not create a plugin or a crate

mockersf commented 2 years ago

Yup, and I agree that we will want one. I'm mostly recommending to think a lot about the API before proposing a PR for that, because it can be a large and opinionated design space.