![]() |
Pixelpart 1.8.2
Godot Plugin
|
Defines the appearance and behavior of particles. More...
Public Member Functions | |
int | get_id () const |
ID of the particle type. | |
int | get_parent_id () const |
ID of the parent particle type. | |
String | get_name () const |
Name of the particle type. | |
void | set_position_relative (bool mode) |
Set whether the position of particles is tied to the position of the emitter. | |
bool | is_position_relative () const |
Whether the position of particles is tied to the position of the emitter. | |
void | set_rotation_mode (int mode) |
Set whether the rotation property represents the exact rotation of particles or their angular velocity. | |
int | get_rotation_mode () const |
Whether the rotation property represents the exact rotation of particles or their angular velocity. | |
void | set_alignment_mode (int mode) |
Set direction to which particles are aligned. | |
int | get_alignment_mode () const |
Direction to which particles are aligned. | |
Ref< PixelpartStaticPropertyFloat3 > | get_pivot () const |
Center of rotation relative to the particle’s center. | |
Ref< PixelpartStaticPropertyFloat > | get_motion_path_force () const |
How much particles are influenced by the motion path. | |
void | set_visible (bool mode) |
Set whether particles of this type are visible. | |
bool | is_visible () const |
Whether particles of this type are visible. | |
void | set_layer (int layer) |
Set layer particles are drawn on. | |
int | get_layer () const |
Layer particles are drawn on. | |
Ref< PixelpartAnimatedPropertyFloat > | get_count () const |
How many particles of this type are spawned by emitters. | |
Ref< PixelpartAnimatedPropertyFloat > | get_lifespan () const |
How long particles exist after being spawned by emitters. | |
Ref< PixelpartAnimatedPropertyFloat > | get_initial_size () const |
Size of each particle when created. | |
Ref< PixelpartAnimatedPropertyFloat3 > | get_initial_rotation () const |
Rotation of each particle when created, in degrees. | |
Ref< PixelpartAnimatedPropertyFloat > | get_initial_velocity () const |
How fast each particle is initially after being spawned by the emitter. | |
Ref< PixelpartAnimatedPropertyFloat > | get_inherited_velocity () const |
How much speed particles inherit from the parent particle or emitter. | |
Ref< PixelpartAnimatedPropertyFloat > | get_initial_opacity () const |
Opacity of each particle when created. | |
Ref< PixelpartAnimatedPropertyFloat3 > | get_position () const |
Motion path for particles. | |
Ref< PixelpartAnimatedPropertyFloat3 > | get_size () const |
Size of each particle over its lifetime as a fraction of its initial size. | |
Ref< PixelpartAnimatedPropertyFloat3 > | get_stretch () const |
How much particles are stretched based on their speed. | |
Ref< PixelpartAnimatedPropertyFloat > | get_physical_size () const |
Relative size of each particle for motion and collision calculations over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat3 > | get_rotation () const |
How particles rotate over time from their initial rotation, in degrees. | |
Ref< PixelpartAnimatedPropertyFloat3 > | get_rotation_by_speed () const |
How much particles rotate based on their velocity, in degrees. | |
Ref< PixelpartAnimatedPropertyFloat > | get_acceleration () const |
Linear acceleration applied to each particle over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat > | get_radial_acceleration () const |
Acceleration of each particle towards the emitter over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat > | get_weight () const |
How strongly each particle is affected by force fields over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat > | get_bounce () const |
How much each particle bounces back from colliders over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat > | get_friction () const |
How resistant each particle is to sliding down colliders over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat4 > | get_color () const |
Color of each particle over its lifetime. | |
Ref< PixelpartAnimatedPropertyFloat > | get_opacity () const |
Opacity of each particle over its lifetime as a fraction of its initial opacity. | |
Ref< PixelpartStaticPropertyFloat > | get_lifespan_variance () const |
How much the lifespan varies between particles. | |
Ref< PixelpartStaticPropertyFloat > | get_size_variance () const |
How much the size varies between particles. | |
Ref< PixelpartStaticPropertyFloat3 > | get_rotation_variance () const |
How much the rotation varies between particles, in degrees. | |
Ref< PixelpartStaticPropertyFloat3 > | get_angular_velocity_variance () const |
How much the angular velocity varies between particles, in degrees/second. | |
Ref< PixelpartStaticPropertyFloat > | get_velocity_variance () const |
How much the speed varies between particles. | |
Ref< PixelpartStaticPropertyFloat4 > | get_color_variance () const |
How much the color varies between particles. | |
Ref< PixelpartStaticPropertyFloat > | get_opacity_variance () const |
How much the opacity varies between particles. | |
Public Attributes | |
bool | position_relative |
Whether the position of particles is tied to the position of the emitter. | |
int | rotation_mode |
Whether the rotation property represents the exact rotation of particles or their angular velocity. | |
int | alignment_mode |
Direction to which particles are aligned. | |
bool | visible |
Whether particles of this type are visible. | |
int | layer |
Layer particles are drawn on. | |
Defines the appearance and behavior of particles.
Each particle emitter has a list of assigned particle types, which it will use for generating particles. The particle type defines how particles move through space (e.g. velocity, acceleration) and how they look (e.g. size, color).
Particle types can be assigned a parent particle type. This causes a particle of the parent type to emit particles of the child particle type.
There are three types of particles, which determines how they are rendered.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_acceleration | ( | ) | const |
Linear acceleration applied to each particle over its lifetime.
int godot::PixelpartParticleType::get_alignment_mode | ( | ) | const |
Direction to which particles are aligned.
Ref< PixelpartStaticPropertyFloat3 > godot::PixelpartParticleType::get_angular_velocity_variance | ( | ) | const |
How much the angular velocity varies between particles, in degrees/second.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_bounce | ( | ) | const |
How much each particle bounces back from colliders over its lifetime.
Ref< PixelpartAnimatedPropertyFloat4 > godot::PixelpartParticleType::get_color | ( | ) | const |
Color of each particle over its lifetime.
Ref< PixelpartStaticPropertyFloat4 > godot::PixelpartParticleType::get_color_variance | ( | ) | const |
How much the color varies between particles.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_count | ( | ) | const |
How many particles of this type are spawned by emitters.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_friction | ( | ) | const |
How resistant each particle is to sliding down colliders over its lifetime.
int godot::PixelpartParticleType::get_id | ( | ) | const |
ID of the particle type.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_inherited_velocity | ( | ) | const |
How much speed particles inherit from the parent particle or emitter.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_initial_opacity | ( | ) | const |
Opacity of each particle when created.
Ref< PixelpartAnimatedPropertyFloat3 > godot::PixelpartParticleType::get_initial_rotation | ( | ) | const |
Rotation of each particle when created, in degrees.
For 3D effects, rotation is composed of roll, yaw and pitch.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_initial_size | ( | ) | const |
Size of each particle when created.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_initial_velocity | ( | ) | const |
How fast each particle is initially after being spawned by the emitter.
int godot::PixelpartParticleType::get_layer | ( | ) | const |
Layer particles are drawn on.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_lifespan | ( | ) | const |
How long particles exist after being spawned by emitters.
Ref< PixelpartStaticPropertyFloat > godot::PixelpartParticleType::get_lifespan_variance | ( | ) | const |
How much the lifespan varies between particles.
Ref< PixelpartStaticPropertyFloat > godot::PixelpartParticleType::get_motion_path_force | ( | ) | const |
How much particles are influenced by the motion path.
Set to 0
to disable motion paths.
String godot::PixelpartParticleType::get_name | ( | ) | const |
Name of the particle type.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_opacity | ( | ) | const |
Opacity of each particle over its lifetime as a fraction of its initial opacity.
Ref< PixelpartStaticPropertyFloat > godot::PixelpartParticleType::get_opacity_variance | ( | ) | const |
How much the opacity varies between particles.
int godot::PixelpartParticleType::get_parent_id | ( | ) | const |
ID of the parent particle type.
-1
if the particle type has no parent Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_physical_size | ( | ) | const |
Relative size of each particle for motion and collision calculations over its lifetime.
Ref< PixelpartStaticPropertyFloat3 > godot::PixelpartParticleType::get_pivot | ( | ) | const |
Center of rotation relative to the particle’s center.
Ref< PixelpartAnimatedPropertyFloat3 > godot::PixelpartParticleType::get_position | ( | ) | const |
Motion path for particles.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_radial_acceleration | ( | ) | const |
Acceleration of each particle towards the emitter over its lifetime.
Ref< PixelpartAnimatedPropertyFloat3 > godot::PixelpartParticleType::get_rotation | ( | ) | const |
How particles rotate over time from their initial rotation, in degrees.
For 3D effects, rotation is composed of roll, yaw and pitch.
Ref< PixelpartAnimatedPropertyFloat3 > godot::PixelpartParticleType::get_rotation_by_speed | ( | ) | const |
How much particles rotate based on their velocity, in degrees.
int godot::PixelpartParticleType::get_rotation_mode | ( | ) | const |
Whether the rotation property represents the exact rotation of particles or their angular velocity.
Ref< PixelpartStaticPropertyFloat3 > godot::PixelpartParticleType::get_rotation_variance | ( | ) | const |
How much the rotation varies between particles, in degrees.
Ref< PixelpartAnimatedPropertyFloat3 > godot::PixelpartParticleType::get_size | ( | ) | const |
Size of each particle over its lifetime as a fraction of its initial size.
Ref< PixelpartStaticPropertyFloat > godot::PixelpartParticleType::get_size_variance | ( | ) | const |
How much the size varies between particles.
Ref< PixelpartAnimatedPropertyFloat3 > godot::PixelpartParticleType::get_stretch | ( | ) | const |
How much particles are stretched based on their speed.
Ref< PixelpartStaticPropertyFloat > godot::PixelpartParticleType::get_velocity_variance | ( | ) | const |
How much the speed varies between particles.
Ref< PixelpartAnimatedPropertyFloat > godot::PixelpartParticleType::get_weight | ( | ) | const |
How strongly each particle is affected by force fields over its lifetime.
bool godot::PixelpartParticleType::is_position_relative | ( | ) | const |
Whether the position of particles is tied to the position of the emitter.
bool godot::PixelpartParticleType::is_visible | ( | ) | const |
Whether particles of this type are visible.
void godot::PixelpartParticleType::set_alignment_mode | ( | int | mode | ) |
Set direction to which particles are aligned.
mode | Alignment mode |
void godot::PixelpartParticleType::set_layer | ( | int | layer | ) |
Set layer particles are drawn on.
Particles on upper layers occlude those on lower layers.
layer | Layer |
void godot::PixelpartParticleType::set_position_relative | ( | bool | mode | ) |
Set whether the position of particles is tied to the position of the emitter.
mode | Relative particle position |
void godot::PixelpartParticleType::set_rotation_mode | ( | int | mode | ) |
Set whether the rotation property represents the exact rotation of particles or their angular velocity.
mode | Rotation mode |
void godot::PixelpartParticleType::set_visible | ( | bool | mode | ) |
Set whether particles of this type are visible.
mode | Whether particles of this type are visible |
int godot::PixelpartParticleType::alignment_mode |
Direction to which particles are aligned.
Possible values:
int godot::PixelpartParticleType::layer |
Layer particles are drawn on.
Particles on upper layers occlude those on lower layers.
int godot::PixelpartParticleType::rotation_mode |
Whether the rotation property represents the exact rotation of particles or their angular velocity.
Possible values: