Skip to content

Commit 4b0c5ab

Browse files
committed
[add] a 2D demo showcasing a falling quad using our new physics implementation.
1 parent 953039e commit 4b0c5ab

File tree

5 files changed

+456
-0
lines changed

5 files changed

+456
-0
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ members = [
1111
"tools/lambda_audio",
1212
# Demo crates (not built by default; see `default-members`).
1313
"demos/audio",
14+
"demos/physics",
1415
"demos/render",
1516
"demos/minimal",
1617
]

demos/physics/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "lambda-demos-physics"
3+
version = "0.1.0"
4+
edition = "2021"
5+
publish = false
6+
7+
[dependencies]
8+
lambda-rs = { path = "../../crates/lambda-rs" }
9+
lambda-rs-logging = { path = "../../crates/lambda-rs-logging" }
10+
11+
[features]
12+
default = ["physics-2d"]
13+
physics-2d = ["lambda-rs/physics-2d"]
14+
validation = ["lambda-rs/render-validation"]
15+
validation-strict = ["lambda-rs/render-validation-strict"]
16+
validation-all = ["lambda-rs/render-validation-all"]
17+
18+
[[bin]]
19+
name = "physics_falling_quad"
20+
path = "src/bin/physics_falling_quad.rs"
21+
required-features = ["physics-2d"]

0 commit comments

Comments
 (0)