在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sburris0/bevy_flycam开源软件地址:https://github.com/sburris0/bevy_flycam开源编程语言:Rust 100.0%开源软件介绍:bevy_flycamA basic first-person fly camera for Bevy 0.7 Controls
ComparisonThere are a few notable differences from bevy_fly_camera...
Usage
[dependencies]
bevy = "0.7"
bevy_flycam = "*" or [dependencies]
bevy = "0.7"
bevy_flycam = { git = "https://github.com/sburris0/bevy_flycam" }
use bevy_flycam::PlayerPlugin; This will spawn a camera for you.
Use
#[bevy_main]
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(PlayerPlugin)
.run();
} Alternatively you can see the example CustomizationTo modify player movement speed or mouse sensitivity, import #[bevy_main]
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(PlayerPlugin)
.insert_resource(MovementSettings {
sensitivity: 0.00015, // default: 0.00012
speed: 12.0, // default: 12.0
})
.run();
} Supportbevy_flycam's crate version follows bevy's X version as shown:
ContributingPRs are very welcome. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论