1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #78740 from CURR-E/lifetime_randomness

Correct description of `ParticleProcessMaterial.lifetime_randomness`
This commit is contained in:
Rémi Verschelde
2023-06-28 14:33:41 +02:00

View File

@@ -209,7 +209,7 @@
Minimum equivalent of [member initial_velocity_max]. Minimum equivalent of [member initial_velocity_max].
</member> </member>
<member name="lifetime_randomness" type="float" setter="set_lifetime_randomness" getter="get_lifetime_randomness" default="0.0"> <member name="lifetime_randomness" type="float" setter="set_lifetime_randomness" getter="get_lifetime_randomness" default="0.0">
Particle lifetime randomness ratio. The lifetime will be multiplied by a value interpolated between [code]1.0[/code] and a random number less than one. For example a random ratio of [code]0.4[/code] would scale the original lifetime between [code]0.4-1.0[/code] of its original value. Particle lifetime randomness ratio. The equation for the lifetime of a particle is [code]lifetime * (1.0 - randf() * lifetime_randomness)[/code]. For example, a [member lifetime_randomness] of [code]0.4[/code] scales the lifetime between [code]0.6[/code] to [code]1.0[/code] of its original value.
</member> </member>
<member name="linear_accel_curve" type="Texture2D" setter="set_param_texture" getter="get_param_texture"> <member name="linear_accel_curve" type="Texture2D" setter="set_param_texture" getter="get_param_texture">
Each particle's linear acceleration will vary along this [CurveTexture]. Each particle's linear acceleration will vary along this [CurveTexture].