2023-11-13 15:16:31 +00:00
# Basic physics example/demo
2023-09-28 12:10:45 +00:00
2024-07-20 23:44:05 +00:00
This example showcases various Bevy components added to objects/ blueprints/ meshes and materials extracted from the gltf files
2023-11-13 15:16:31 +00:00
2023-09-28 12:10:45 +00:00
## Running this example
```
2023-11-13 13:36:42 +00:00
cargo run --features bevy/dynamic_linking
2024-02-07 13:07:17 +00:00
```
## Wasm instructions
### Setup
as per the bevy documentation:
```shell
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
2023-09-28 12:10:45 +00:00
```
2024-02-07 13:07:17 +00:00
### Building this example
navigate to the current folder , and then
```shell
cargo build --release --target wasm32-unknown-unknown --target-dir ./target
wasm-bindgen --out-name wasm_example \
--out-dir ./target/wasm \
--target web target/wasm32-unknown-unknown/release/bevy_gltf_blueprints_basic_wasm_example.wasm
```
### Running this example
run a web server in the current folder, and navigate to the page, you should see the example in your browser
## Additional notes
2023-09-28 12:10:45 +00:00
* You usually define either the Components directly or use ```Proxy components``` that get replaced in Bevy systems with the actual Components that you want (usually when for some reason, ie external crates with unregistered components etc) you cannot use the components directly.