mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add 'angle_spread' property
This commit is contained in:
parent
90b1f63406
commit
c6de7f62fe
5 changed files with 28 additions and 4 deletions
|
|
@ -43,6 +43,7 @@ dv::value ParticlesPreset::serialize() const {
|
|||
root["explosion"] = dv::to_value(explosion);
|
||||
root["size"] = dv::to_value(size);
|
||||
root["size_spread"] = sizeSpread;
|
||||
root["angle_spread"] = angleSpread;
|
||||
root["spawn_spread"] = dv::to_value(size);
|
||||
root["spawn_shape"] = to_string(spawnShape);
|
||||
root["random_sub_uv"] = randomSubUV;
|
||||
|
|
@ -58,6 +59,7 @@ void ParticlesPreset::deserialize(const dv::value& src) {
|
|||
src.at("spawn_interval").get(spawnInterval);
|
||||
src.at("lifetime").get(lifetime);
|
||||
src.at("lifetime_spread").get(lifetimeSpread);
|
||||
src.at("angle_spread").get(angleSpread);
|
||||
src.at("random_sub_uv").get(randomSubUV);
|
||||
if (src.has("velocity")) {
|
||||
dv::get_vec(src["velocity"], velocity);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue