Files

15 lines
235 B
JavaScript
Raw Permalink Normal View History

2021-09-13 09:34:08 +02:00
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();
}
}