mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
23 lines
458 B
Plaintext
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];
|
|
}
|
|
} |