Submissions from 2022-05-17 to 2022-05-18 (1 total)

i've been thinking about some of the finer technical details of combat. i think projectiles can effectively be broken up into just hitboxes and hitscans. a sword slash or a slow moving bullet would feature their own moving colliders, but a hitscan would just perform a sweep that instantly calculates a hit.

of course, i want to keep the data that projectiles provide consistent, and it should probably remember things like the location of the hit on the enemy, the direction of the projectile, what different parts of the enemy it hit...

i'm thinking about how to write all of this in a way that can use classes to organize it tightly and still make sense. i need to genericize the problem and create some kind of base class, probably. good ideas for tomorrow as i get time again.