Use the particles System to Emit 2D gameObjects , How ?
HI there.
I'm trying to use the particle system to design the gold coming out, from opening a chest in-game. I got several different type of gold prefabs (gold piece, silver, copper...) but i'm having an issue.
I don't see how i can use those Golds prefabs to be emited in the particle system, to "pop" from the chest and then fall on the physical 2D ground, ready to be collected. Because the idea is to use the fancy physic from particles to add the effect without "coding" some specific path for each one (i'm a graphist, not really a programmer XD)
Is there a way to do such without paying some assets in the store ? Thanks in advance^^.
Answer by NoDumbQuestion · Aug 23, 2018 at 01:44 AM
In particle system,"Collision" have rigidbody and collider system too.
Just clicking on it. It will use circle or cube or sprite as physics collider by your choice
Only exist with newer version of Unity. Like 2017.2 + i guess.
Answer by Bakudan · Aug 23, 2018 at 04:00 PM
Well i did use it already to make them use physic, but those particles aren't prefabs, its just sprite or shapes that disappear after a certain time and aren't interactable.
What i though was possible is to actually spawn prefabs with particles, and being able to collect them colliding with the character for instance.
Currently the only think you can do with "collision" and to simulate bounce or particle that hit something, but then its just vanish.^^'
If you read script api of particle system.
Unity do have support OnParticleCollide for each emit particle. But it is quite advance, and different from normal OnCollision
Your answer
Follow this Question
Related Questions
How do I make this script play a particle sytem from prefab 1 Answer
Detecting neighbour particles in the particle system 0 Answers
PreFab Issues on Collision 0 Answers
Communicate between scenes with prefabs? 3 Answers
Prefabs floating in the air 0 Answers