If you go a mouse pointer over your property, you’ll see a name of property. For angular velocity property name is angular_velocity. So, to set the value, for example, 2.5 of it, in your sample, you should do something like this:
particles.material.set("angular_velocity", 2.5)
I tried the following code:
var particles = (Particles2D)GetNode("Particles2D");
if (Input.IsActionPressed("ui_right))
{
particles.Material.Set("angular_velocity", 2);
}
But I get this error:
0:00:05:0402 - System.NullReferenceException: Object reference not set to an instance of an object.
Type:Error
Description: System.NullReferenceException: Object reference not set to an instance of an object.
Time: 0:00:05:0402
C Error: Unhandled exception
C Source: /home/bryangieger/GodotProjects/SpaceShooter/Player.cs:32
C Function: void Player._Process(Single )