- Home /
Play sound from particle
Hi there!
I am trying to play a sound when a particle collides with a wall. Right now, it just plays the sound from the parent object, which is the player.
However, I want the sound to play from the particle. Which means when a particle is far to the left, you vaguely hear the sound coming from the left.
Is there a way to play the sound from a particle, when it collides?
Answer by Johnz1234 · Jun 19, 2015 at 05:11 PM
public AudioSource mySound; OnTriggerEnter() { AudioSource.PlayClipAtPoint("mySound",transfrom.position); } add this script to your particle and add trigger to particle
Your answer
Follow this Question
Related Questions
Sound play in spot of particle collision 1 Answer
How do I use compute shaders with particles? 0 Answers
Particles and 2D games 1 Answer
onCollision explode and sound help 0 Answers
Shuriken OnParticledCollision 2 Answers