0
votes

I am using particle editor for 3D effect. Created everything was ok, and added to my libgdx game. My probleme is the scale is very big .

How can I change the particles scale at runtime or other?

Searched a lot of here in SO, and I can not find an answer for the MODERN libgdx. I am using the LATEST. So those solutions not work at all...

Any help?

    targetMatrix
            .idt()
            .setToTranslation(astronaut.getPosition())
            .setToScaling(0.1f, 0.1f, 0.1f);
    effect.setTransform(targetMatrix);

but this is not working

my pfx file:

pastebin.com/yzCDQape

1
Hi lacas, instead of "modern" or "latest" a version number would be helpful I guess - Sebastian
gdxVersion = '1.9.5' - lacas
by the way I tried with latest 1.9.6 and the smae results: targetMatrix .idt() .setToTranslation(astronaut.getPosition()) .mul(new Matrix4().scl(0.01f)) ; - lacas

1 Answers

0
votes

I ended up uses the emitters theta and phivalues highmin and highmax. Thanks