Files
q1k3/source/entity_particle.js
T
Dominic Szablewski a844ba46f8 Initial
2021-09-13 10:09:54 +02:00

15 lines
235 B
JavaScript
Executable File

class entity_particle_t extends entity_t {
_init() {
this._bounciness = 0.5;
this.f = 0.1;
}
_update() {
this._yaw += this.v.y * 0.001;
this._pitch += this.v.x * 0.001;
this._update_physics();
this._draw_model();
}
}