Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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 :)
-
Hi.
Try Set position
-
You want to spawn something at the coordinates of a particle that has become immobile?
-
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 :)
-
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)
-
Thanks for having a look :) Ill have a nose see if I've overlooked that