Pixel-Composer/scripts/__3d_particle/__3d_particle.gml
2023-10-28 18:31:13 +07:00

23 lines
458 B
Plaintext

function __3DVFX() constructor {
active = true;
position = [ 0, 0, 0 ];
rotation = [ 0, 0, 0 ];
scale = [ 0, 0, 0 ];
seed = 0;
velocity = [ 0, 0, 0 ];
static reset = function(seed) {
self.seed = seed;
random_set_seed(seed);
position[0] = random_range(-4, 4);
position[1] = random_range(-4, 4);
position[2] = random_range(-4, 4);
}
static step = function() {
for( var i = 0; i < 3; i++ )
position[i] += velocity[i];
}
}