【文件属性】:
文件名称:heron:符合人体工程学的人体工程学API
文件大小:39KB
文件格式:ZIP
更新时间:2021-03-08 02:00:27
rust physics game-development bevy-engine Rust
苍鹭
符合2D和3D 游戏的人体工学物理学API。 (由提供动力)
看起来如何
fn main () {
App :: build ()
. add_plugins (DefaultPlugins)
. add_plugin (PhysicsPlugin :: default ()) // Add the plugin
. add_resource (Gravity :: from (Vec3 :: new ( 0.0 , - 9.81 , 0.0 ))) // Optionally define gravity
. add_startup_system (spawn. system ())
. run ();
}
fn spawn (commands: & mut Commands) {
commands
// Spa
【文件预览】:
heron-main
----core()
--------src()
--------Cargo.toml(291B)
----.github()
--------dependabot.yml(339B)
--------workflows()
----rapier()
--------tests()
--------src()
--------Cargo.toml(686B)
----LICENSE(1KB)
----CONTRIBUTING.md(3KB)
----src()
--------lib.rs(5KB)
----Cargo.toml(2KB)
----examples()
--------demo.rs(3KB)
--------debug.rs(1KB)
----debug()
--------src()
--------Cargo.toml(499B)
----.gitignore(116B)
----.cargo()
--------config_fast_builds(1KB)
----CHANGELOG.md(6KB)
----release.toml(258B)
----README.md(4KB)