From 3cd58fe0ba597f5e72e087b9df0a847d2ecbf990 Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Sun, 1 May 2016 12:36:45 -0500 Subject: [PATCH] Partial documentation for Particles2D --- doc/base/classes.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 88274a45167..bbd23a7d47e 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -22993,56 +22993,66 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + 2D Particle emitter + Particles2D is a particle system 2D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist). + If this is set to true then the particle emitter will emit particles, if its false it will not. + Returns whether this emitter is currently emitting or not + Sets the amount of particles spawned at each emission + Returns the amount of particles spawned at each emission + Sets the amount of seconds that each particle will be visible. + Gets the amount of seconds that each particle will be visible. + Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast. + Returns the emitter time scale @@ -23061,12 +23071,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever. + Returns the amount of seconds during which the emitter will spawn particles @@ -23075,6 +23087,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Sets the value of the specified emitter parameter (see the constants secction for the list of parameters) @@ -23083,6 +23096,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Returns the value of the specified emitter parameter @@ -23091,6 +23105,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be. @@ -23099,6 +23114,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Returns the randomness value of the specified emitter parameter @@ -23107,24 +23123,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Sets the texture for each particle + Returns the texture for emitted particles + Set the tint color for each particle. + Returns the tint color for each particle. @@ -23133,24 +23153,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes. + Returns the [ColorRamp] used to tint each particle + Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center. + Returns the particle spawn origin position relative to the emitter. @@ -23205,12 +23229,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Sets the half extents of the emission box, particles will be spawned at random inside this box. + Returns the half extents of the emission box. @@ -23318,30 +23344,40 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative + Velocity at which the particles will be launched. + The speed at which particles will spin around its own center. + Velocity at which the particles will orbit around the emitter center + Direction in degrees at which the particles will be attracted + Strength of the gravitation attraction for each particle + Amount of damping for each particle + Initial angle at which each particle will be spawned + Initial size of each particle + Final size of each particle, the particle size will interpolate to this value during its lifetime.