Sonolus Wiki

Particle Effect Particle Property Expression

Particle effect particle property expression provides simple yet powerful way for particle to describe its property.

Property Expression

Each property output is computed based on its property expression, which is the sum of all property inputs multiplied by corresponding coefficient.

Take the following example:

{
    "x": {
        "c": 0.1,
        "cosr1": 0.2
    }
}

It will be transformed with the following logic:

output.x = input.c * 0.1 + input.cosr1 * 0.2

Inputs

NameDescription
cEquals to 1
r1Randomized value in range 0 to 1
r2Randomized value in range 0 to 1
r3Randomized value in range 0 to 1
r4Randomized value in range 0 to 1
r5Randomized value in range 0 to 1
r6Randomized value in range 0 to 1
r7Randomized value in range 0 to 1
r8Randomized value in range 0 to 1
sinr1Equals to sin(2 * PI * r1)
sinr2Equals to sin(2 * PI * r2)
sinr3Equals to sin(2 * PI * r3)
sinr4Equals to sin(2 * PI * r4)
sinr5Equals to sin(2 * PI * r5)
sinr6Equals to sin(2 * PI * r6)
sinr7Equals to sin(2 * PI * r7)
sinr8Equals to sin(2 * PI * r8)
cosr1Equals to cos(2 * PI * r1)
cosr2Equals to cos(2 * PI * r2)
cosr3Equals to cos(2 * PI * r3)
cosr4Equals to cos(2 * PI * r4)
cosr5Equals to cos(2 * PI * r5)
cosr6Equals to cos(2 * PI * r6)
cosr7Equals to cos(2 * PI * r7)
cosr8Equals to cos(2 * PI * r8)