Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Tangled Rays on October 08, 2019, 03:44:49 AM

Title: Trying to spawn object at particle resting place
Post by: Tangled Rays on October 08, 2019, 03:44:49 AM
Hi all, although I am storing the final resting position of the particle in a variable, that variable is not available to the 'Move Object' action, any ideas how I should go about this? Thanks for any help :)
Title: Re: Trying to spawn object at particle resting place
Post by: djaydino on October 08, 2019, 06:47:37 PM
Hi.
Try Set position
Title: Re: Trying to spawn object at particle resting place
Post by: Broken Stylus on October 09, 2019, 09:03:08 AM
You want to spawn something at the coordinates of a particle that has become immobile?
Title: Re: Trying to spawn object at particle resting place
Post by: Tangled Rays on October 09, 2019, 12:50:12 PM
Yes, I have the particle set up so that it spawns an immobile sub particle at the point it's speed is less than 0.3, which works just fine, but the PlayMaker script only ever spawns at the root of the level start or the particle root, not the actual particle. I've tried every combination I can think of and even asking the object to move after spawning doesn't seem to work, it still moves to the point of origin instead of the particle.
 Thanks for any help :)
Title: Re: Trying to spawn object at particle resting place
Post by: Broken Stylus on October 10, 2019, 06:16:33 AM
So in other word, it looks one level too high in the hierarchy of your scene. It looks like it is unable to actually understand the coordinates of the particle or sub-particle.
Have you set your emitter so particles are emitted in World Space and not Local Space? Check Simulation Space.

I think the new action will require these too:
Particle (https://docs.unity3d.com/ScriptReference/ParticleSystem.Particle.html?_ga=2.82476191.867939859.1570626203-1053793631.1568483816)
ParticleSystem.GetParticles (https://docs.unity3d.com/ScriptReference/ParticleSystem.GetParticles.html?_ga=2.82476191.867939859.1570626203-1053793631.1568483816)
ParticleSystem.Particle.position (https://docs.unity3d.com/ScriptReference/ParticleSystem.Particle-position.html?_ga=2.82476191.867939859.1570626203-1053793631.1568483816)
Title: Re: Trying to spawn object at particle resting place
Post by: Tangled Rays on October 10, 2019, 01:35:50 PM
Thanks for having a look :) Ill have a nose see if I've overlooked that