Skip to content

Commit 3e15ec5

Browse files
authored
Attaching "hitbox" colliders to bones (#97)
It's common to attach colliders to animated bones to act as "hitboxes" for projectiles; either to determine which hit animation to play or to handle damage different for each body part. This PR adds an UI for doing this in the editor. There's also a new optional asset type `SkeletonColliders` that is used to add colliders to a skeleton. The UX is not perfect, but is usable for now and has some quality of life features like configurable symmetry support (you can see in the picture below that the "transparent" colliders are replicated by the symmetry configuration, whereas the ones drawn with full opacity are manually added): ![collider editor screenshot](https://github.com/user-attachments/assets/68eed757-b057-4d05-8f8f-3203c38af31b)
1 parent 664d8cc commit 3e15ec5

63 files changed

Lines changed: 2767 additions & 418 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
- name: Install stable toolchain
3232
uses: dtolnay/rust-toolchain@stable
3333
- name: Install Dependencies
34-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
34+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
3535
- name: Run cargo test
36-
run: cargo test
36+
# set parallel jobs to 1 to reduce chance of github killing it
37+
run: cargo test -j 1
3738

3839
# Run cargo clippy -- -D warnings
3940
clippy_check:
@@ -58,7 +59,7 @@ jobs:
5859
with:
5960
components: clippy
6061
- name: Install Dependencies
61-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
62+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
6263
- name: Run clippy
6364
run: cargo clippy -- -D warnings
6465

0 commit comments

Comments
 (0)