I’m wanting to do some experimenting with melee combat and I’m working on a system where I use multiple colliders spread out between the weapons previous and current frame to see the exact moment of contact between frames and to avoid hitting through walls, telescoping, and a plethora of other issues.
So my problem is this: If hit an object I want to put it in a list so that I can make sure and not double hit or do any unnecessary work on the CPU.
Is it fine to just add that object to a list or is there a smarter/cheaper way to do it?
Instead of using triggers or colliders for the melee weapon you can just do a SphereCast to see if there’s anything ahead of the player when the sword is midway through its swing.