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