I’m cloning and spawning entities with particle systems on them and haven’t figured out a way to orient them in the world. Ideally they would be oriented to match whatever character is emmiting them but so far rotation has no effect. Wondering if I’m going about it the right way. Perhaps there is a workaround?
Here is the current orientation regardless of the parent or entity being rotated before play():
The preferred orientation would be that of the character emitting it:
Here’s the code we are using to spawn the ps:
const clonedPS = [];
if (spawnedFX.particlesystem) clonedPS.push({ ps: spawnedFX.particlesystem, entity: spawnedFX });
spawnedFX.children.forEach(c => { if (c.particlesystem) clonedPS.push({ ps: c.particlesystem, entity: c }); });
let maxLife = 0.5;
clonedPS.forEach(({ ps, entity: psEntity }) => {
if (rotation) psEntity.setRotation(rotation);
ps.reset();
ps.play();
maxLife = Math.max(maxLife, ps.lifetime || 0.5);
});
Thank you!

