UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

20 lines (19 loc) 590 B
"use strict"; import { resetParticles, stepParticles } from "../../core/particles/CoreParticles"; import { ObjectNamedFunction0, ObjectNamedFunction1 } from "./_Base"; export class particlesSystemReset extends ObjectNamedFunction0 { static type() { return "particlesSystemReset"; } func(object3D) { resetParticles(object3D); } } export class particlesSystemStepSimulation extends ObjectNamedFunction1 { static type() { return "particlesSystemStepSimulation"; } func(object3D, configRef) { stepParticles(object3D, this.timeController.delta(), configRef); } }