How to rotate the particle2d ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zszen John

the velocity only direct fly to right (gravity=0), I can only rotate it with transfrom. Is it ok ?

:bust_in_silhouette: Reply From: kidscancode

Rotating the Particles2D node is the correct way to do this.

But try it don’t work

Zszen John | 2019-06-07 06:27

How did it “not work”? Particles are going to the right, I rotate the node, now they’re going up.

kidscancode | 2019-06-07 14:21

:bust_in_silhouette: Reply From: Xrayez

You could also try to control any particles properties from script (including velocity):

 $particles.process_material.<your_property_here> = <value>

You should probably set local_coords = false too for particles to act in global space.