i deliberated over how to make a clean and orderly hitbox / hurtbox system for most of yesterday and today. and then, for whatever reason, i finally decided i had had enough of that and went and implemented a super gross and simple version of it that could still feasibly be refactored into something far more useful later.

and the great news is that without too much struggle, Unity seems to handle it just fine. is it performant? probably not. but a generic hitbox, hurtbox, and weapons system is not so far away with this one little test.

thinking about it, this means that enemy health and weapon damage isn't so far away either, which is pretty exciting.

rubic2 years ago

just noticed that one of those console lines is written wrong. Hurtbox doesn't leave Sword Swing's Hitbox, i just wrote it reversed on accident. hitboxes are enabled and disabled (and i should probably create some kind of gizmo to show that happening in real time!)

daily creative

work on something (gamedev, art, 3d modeling, music, ...) every day

joined 1,784 days ago

2024-11
2024-10
2024-09
2024-08
2024-07

Decade Jam

To help keep members of the Decade Jam on track with their projects!

joined 1,307 days ago