- Home /
Question by
Andres8936 · Jun 09, 2021 at 05:56 PM ·
gameobjectparticlesystemdamagedetection
How to detect if a GameObject is inside a Particle?
Hi. I want my player to get damaged if leaves the withe trail showed bellow.
I made that trail with a particle system with a emission rate over time of 50, I did it because it was the only way I came up with and I don't know if is the most optimized way.
Thanks!. ,
ezgif-3-d1d538da6b28.gif
(501.1 kB)
Comment
Answer by Robb_oates · Aug 08, 2021 at 08:16 AM
There are particle collision/trigger functions, but its not like thecollider ones with Enter, Stay and Exit. You could possibly set a boolean variable to be set to true when the particle trigger function is called.
Your answer
