CPUParticles2D

Inherits: Node2D < CanvasItem < Node < Object

Category: Core

Brief Description

Methods

void convert_from_particles ( Node particles )
void restart ( )

Enumerations

enum Flags:

  • FLAG_ALIGN_Y_TO_VELOCITY = 0
  • FLAG_MAX = 2

enum Parameter:

  • PARAM_INITIAL_LINEAR_VELOCITY = 0
  • PARAM_ANGULAR_VELOCITY = 1
  • PARAM_ORBIT_VELOCITY = 2
  • PARAM_LINEAR_ACCEL = 3
  • PARAM_RADIAL_ACCEL = 4
  • PARAM_TANGENTIAL_ACCEL = 5
  • PARAM_DAMPING = 6
  • PARAM_ANGLE = 7
  • PARAM_SCALE = 8
  • PARAM_HUE_VARIATION = 9
  • PARAM_ANIM_SPEED = 10
  • PARAM_ANIM_OFFSET = 11
  • PARAM_MAX = 12

enum EmissionShape:

  • EMISSION_SHAPE_POINT = 0
  • EMISSION_SHAPE_CIRCLE = 1
  • EMISSION_SHAPE_RECTANGLE = 2
  • EMISSION_SHAPE_POINTS = 3
  • EMISSION_SHAPE_DIRECTED_POINTS = 4

enum DrawOrder:

  • DRAW_ORDER_INDEX = 0
  • DRAW_ORDER_LIFETIME = 1

Property Descriptions

Setter set_amount(value)
Getter get_amount()
Setter set_param(value)
Getter get_param()
Setter set_param_curve(value)
Getter get_param_curve()
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_param(value)
Getter get_param()
  • Curve angular_velocity_curve
Setter set_param_curve(value)
Getter get_param_curve()
  • float angular_velocity_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_particle_flag(value)
Getter get_particle_flag()
Setter set_param(value)
Getter get_param()
  • Curve anim_offset_curve
Setter set_param_curve(value)
Getter get_param_curve()
  • float anim_offset_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_param(value)
Getter get_param()
Setter set_param_curve(value)
Getter get_param_curve()
  • float anim_speed_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_color(value)
Getter get_color()
Setter set_color_ramp(value)
Getter get_color_ramp()
Setter set_param(value)
Getter get_param()
Setter set_param_curve(value)
Getter get_param_curve()
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_draw_order(value)
Getter get_draw_order()
Setter set_emission_colors(value)
Getter get_emission_colors()
Setter set_emission_normals(value)
Getter get_emission_normals()
Setter set_emission_points(value)
Getter get_emission_points()
Setter set_emission_rect_extents(value)
Getter get_emission_rect_extents()
Setter set_emission_shape(value)
Getter get_emission_shape()
  • float emission_sphere_radius
Setter set_emission_sphere_radius(value)
Getter get_emission_sphere_radius()
Setter set_emitting(value)
Getter is_emitting()
Setter set_explosiveness_ratio(value)
Getter get_explosiveness_ratio()
  • int fixed_fps
Setter set_fixed_fps(value)
Getter get_fixed_fps()
Setter set_particle_flag(value)
Getter get_particle_flag()
Setter set_flatness(value)
Getter get_flatness()
Setter set_fractional_delta(value)
Getter get_fractional_delta()
Setter set_gravity(value)
Getter get_gravity()
Setter set_param(value)
Getter get_param()
  • Curve hue_variation_curve
Setter set_param_curve(value)
Getter get_param_curve()
  • float hue_variation_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_param(value)
Getter get_param()
  • float initial_velocity_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_lifetime(value)
Getter get_lifetime()
Setter set_param(value)
Getter get_param()
  • Curve linear_accel_curve
Setter set_param_curve(value)
Getter get_param_curve()
  • float linear_accel_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_use_local_coordinates(value)
Getter get_use_local_coordinates()
Setter set_normalmap(value)
Getter get_normalmap()
Setter set_one_shot(value)
Getter get_one_shot()
Setter set_pre_process_time(value)
Getter get_pre_process_time()
Setter set_param(value)
Getter get_param()
  • Curve radial_accel_curve
Setter set_param_curve(value)
Getter get_param_curve()
  • float radial_accel_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_randomness_ratio(value)
Getter get_randomness_ratio()
Setter set_param(value)
Getter get_param()
Setter set_param_curve(value)
Getter get_param_curve()
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_speed_scale(value)
Getter get_speed_scale()
Setter set_spread(value)
Getter get_spread()
Setter set_param(value)
Getter get_param()
  • Curve tangential_accel_curve
Setter set_param_curve(value)
Getter get_param_curve()
  • float tangential_accel_random
Setter set_param_randomness(value)
Getter get_param_randomness()
Setter set_texture(value)
Getter get_texture()

Method Descriptions

  • void convert_from_particles ( Node particles )
  • void restart ( )