Hello,
I’m making a game with multiple balls on a scene.
I want a sound to be played each time 2 balls collide.
I planned to use the OnTriggerEnter even on each ball, and play the sound, but if ball A hits ball B, then the OnTriggerEnter event will be fired on ball A and also on ball B, so the sound will be played twice, if I’m not wrong…
If I had only 2 balls, then it’s easy : just place the script only on ball A.
But since if I have something like 100 balls, then how to do this ?
Thanks for help.
Best regards,
Vincent.