unity particle system

i have a particle system on a rigidbody. it plays once something triggers it as soon as something triggers it, it plays a particle effect and transforms the object to a different position. does someone know how to make the particle come out of one spot where it was triggered instead of playing from the gameobject. For example if I play the particle and move around the gameobject the particle will come off of the gameobject instaed of the spot where i started playing the particle. This is kind of confusing to explain but i want the particle to come out of the position where the gameobject was triggered instead of following the game object around. Im sorry this is a really dumb question and im kind of new to unity

Hey @DaudHTMs ,

Is this the built-in particle system or the Visual Effect Graph?
Either way, if you switch the systems to be in World Space (and not the default Local Space) then particles already spawned will remain in the position they are spawned even if you move the spawning objects.

You just have to make sure that you spawn them with the current position first before you move your gameobject.

thanks for this but the particles are still coming out off the game object and not the position where they were triggered. the origin of the particles is still the gameobject and the particles only come out off the gameobject, I want the particles to come out of the possition where the gameobject was triggered.

It’s hard to tell without seeing what’s happening, any visuals or code can help to see how you are spawning them.
Is it possible that the particles are spawned and the object is moved in the same frame? If you are spawning them from script, you may have to wait for a frame before moving the object.

You haven’t mentioned if this is the built-in particle system or the Visual Effect Graph. If you are using the VFX graph, as we discussed check that your system is set to World so the particles are not moved with the game object. If you are setting a specific position manually, the position block is also space-able (the little L or W button can be toggled to change the space of the position).

1 Like