Hi folks,
I just finished the Realm Rush unit, with everything working fine. Woohoo!
At some point though, it looks like my ballista projectiles stopped registering hits on the rams even though they were working before. It was strange since I didn’t change anything about the collision logic, since it’d have been working before the pathfinding refactors in the lecture. I tried going through the debugging and it looks like OnParticleCollision simply wasn’t being called; after going through everything (yes, I have collisions sending messages on the particle, I do not have it set as a trigger), I found that changing “Lifetime Loss” from 1 to 0.95… seemed to restore OnParticleCollision events. Though now the particle acts a little jank for a fraction of a second as it tries to aim at a new target.
Anyone have any ideas what I might commonly be running into? Any toggles or flips I should hunt for, maybe I’m hitting something invisible in my scene, or…? Since I don’t know how to retrieve the name of what my particle is hitting, I am at a loss for what is causing my particle to end lifetime prematurely.