@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
16 lines (15 loc) • 672 B
JavaScript
;
import { ParamlessBaseTriggerAndObjectJsNode } from "./_BaseTriggerAndObject";
import { inputObject3D } from "./_BaseObject3D";
import { Poly } from "../../Poly";
export class ClothSolverResetJsNode extends ParamlessBaseTriggerAndObjectJsNode {
static type() {
return "clothSolverReset";
}
setTriggerableLines(shadersCollectionController) {
const object3D = inputObject3D(this, shadersCollectionController);
const func = Poly.namedFunctionsRegister.getFunction("clothSolverReset", this, shadersCollectionController);
const bodyLine = func.asString(object3D);
shadersCollectionController.addTriggerableLines(this, [bodyLine]);
}
}