UNPKG

@polygonjs/polygonjs

Version:

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

16 lines (15 loc) 675 B
"use strict"; import { ParamlessBaseTriggerAndObjectJsNode } from "./_BaseTriggerAndObject"; import { inputObject3D } from "./_BaseObject3D"; import { Poly } from "../../Poly"; export class PhysicsWorldResetJsNode extends ParamlessBaseTriggerAndObjectJsNode { static type() { return "physicsWorldReset"; } setTriggerableLines(shadersCollectionController) { const object3D = inputObject3D(this, shadersCollectionController); const func = Poly.namedFunctionsRegister.getFunction("physicsWorldReset", this, shadersCollectionController); const bodyLine = func.asString(object3D); shadersCollectionController.addTriggerableLines(this, [bodyLine]); } }