0 votes

I want to change the tangential acceleration of particles from the script like this :

if Input.is_action_pressed("move_left"):
    $Particles2D.tangential_accel = 50

But this gives me error ! How can I change the tangential acceleration as well as other properties ?

in Projects by (403 points)

1 Answer

0 votes
Best answer

tangential_accel is a property of the contained process_material, not the Particles2D itself.

So, you want something like this:

$Particles2D.process_material.tangential_accel = 50
by (10,840 points)
selected by

Thanks mate it worked just fine !

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.