So for part of a passion project, I have a terrain scanner ping using a particle with a custom shader. Following this tutorial here:
I need to be able to have things react when they’re hit by the ping, and after a bit of screwing around I got a capsule with a script on it to react when it’s hit by the particle (and by that i mean send a message in the debug log). However, now I’ve run into another problem, which is that since the particle has a collider that interacts with the capsule’s collider, when they hit, the particle is pushed out of it, causing it to jump unnaturally. I tried making it delete the collider of the thing being pinged once it’s hit, but it still jumps once before it can delete the collider. My code so far is literally just
OnParticleCollision {Debug.Log("Ping detected")}