Pixel-Composer/scripts/__3d_particle/__3d_particle.gml

23 lines
458 B
Plaintext
Raw Normal View History

2023-10-28 13:31:13 +02:00
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];
}
}