UNPKG

@polygonjs/polygonjs

Version:

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

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