1234567891011121314151617181920 |
- class XRain extends XSubSequence {
- constructor(e, t, r) {
- super(e, t, r);
- this.onLoadedObserverable.addOnce(()=>{
- this._particleGroups.forEach(n=>{
- const o = n.systems[0];
- o.getClassName() == "ParticleSystem" && (o.startPositionFunction = function(a, s) {
- const u = 2 * Math.random() * Math.PI
- , c = Math.random() * 15 * Math.sin(u)
- , h = this.minEmitBox.y
- , f = Math.random() * 15 * Math.cos(u);
- Vector3.TransformCoordinatesFromFloatsToRef(c, h, f, a, s)
- }
- )
- }
- )
- }
- )
- }
- }
|