0c48681e58
Add particle "frame" enum, to allow effects relative to local, world, or velocity. Remove the "orient along velocity" and replace with a much more general orientation affector (angle curve + frame). Add an angular velocity affector to mirror the behavior of the linear velocity affector. Bug: skia: Change-Id: Ibbaaeb352c9547d00d81c7916d00148dd65ed2b9 Reviewed-on: https://skia-review.googlesource.com/c/195361 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
100 lines
2.2 KiB
JSON
100 lines
2.2 KiB
JSON
{
|
|
"MaxCount": 4096,
|
|
"Duration": 1,
|
|
"Rate": 30,
|
|
"Life": {
|
|
"XValues": [],
|
|
"Segments": [
|
|
{
|
|
"Constant": true,
|
|
"Ranged": false,
|
|
"Bidirectional": false,
|
|
"A0": 10,
|
|
"B0": 0,
|
|
"C0": 0,
|
|
"D0": 0,
|
|
"A1": 0,
|
|
"B1": 0,
|
|
"C1": 0,
|
|
"D1": 0
|
|
}
|
|
]
|
|
},
|
|
"Drawable": {
|
|
"Type": "SkCircleDrawable",
|
|
"Radius": 1
|
|
},
|
|
"Emitter": {
|
|
"Type": "SkLineEmitter",
|
|
"P1": { "x": 61, "y": 34 },
|
|
"P2": { "x": 606, "y": 32 }
|
|
},
|
|
"Spawn": [
|
|
{
|
|
"Type": "SkLinearVelocityAffector",
|
|
"Enabled": true,
|
|
"Force": false,
|
|
"Frame": 0,
|
|
"Angle": {
|
|
"XValues": [],
|
|
"Segments": [
|
|
{
|
|
"Constant": true,
|
|
"Ranged": true,
|
|
"Bidirectional": false,
|
|
"A0": 170,
|
|
"B0": 1,
|
|
"C0": 0,
|
|
"D0": 0,
|
|
"A1": 190,
|
|
"B1": 0,
|
|
"C1": 0,
|
|
"D1": 0
|
|
}
|
|
]
|
|
},
|
|
"Strength": {
|
|
"XValues": [],
|
|
"Segments": [
|
|
{
|
|
"Constant": true,
|
|
"Ranged": true,
|
|
"Bidirectional": false,
|
|
"A0": 10,
|
|
"B0": 0,
|
|
"C0": 0,
|
|
"D0": 0,
|
|
"A1": 30,
|
|
"B1": 0,
|
|
"C1": 0,
|
|
"D1": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"Update": [
|
|
{
|
|
"Type": "SkSizeAffector",
|
|
"Enabled": true,
|
|
"Curve": {
|
|
"XValues": [],
|
|
"Segments": [
|
|
{
|
|
"Constant": false,
|
|
"Ranged": true,
|
|
"Bidirectional": false,
|
|
"A0": 10,
|
|
"B0": 10,
|
|
"C0": 10,
|
|
"D0": 0,
|
|
"A1": 10,
|
|
"B1": 0,
|
|
"C1": 0,
|
|
"D1": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |