diff options
| author | iamcheeseman <[email protected]> | 2026-03-03 21:13:32 -0500 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-03 21:13:32 -0500 |
| commit | 86f95e0737ba082625c22d40057e66499cbc8ac1 (patch) | |
| tree | c86336bf0a21b7740d8b5416424b30c4bb3eee9e /src/phys/world.odin | |
| parent | 11d72700ad9afd1d23bdae730edf5b160e99fde4 (diff) | |
Health and dying
Diffstat (limited to 'src/phys/world.odin')
| -rw-r--r-- | src/phys/world.odin | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/phys/world.odin b/src/phys/world.odin index c03445a..f569a5d 100644 --- a/src/phys/world.odin +++ b/src/phys/world.odin @@ -345,3 +345,13 @@ get_collisions :: proc(h: Body_Handle) -> bit_set[Collision_Type;u8] { get_rect :: proc(h: Body_Handle) -> Rect { return hm.get(&world.bodies, h).rect } + +@(require_results) +get_layers :: proc(h: Body_Handle) -> Layer_Set { + return hm.get(&world.bodies, h).layers +} + +@(require_results) +get_mask :: proc(h: Body_Handle) -> Layer_Set { + return hm.get(&world.bodies, h).mask +} |
