UNPKG

@polygonjs/polygonjs

Version:

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

28 lines (27 loc) 1 kB
"use strict"; import { BaseTriggerAndObjectJsNode } from "./_BaseTriggerAndObject"; import { inputObject3D } from "./_BaseObject3D"; import { Poly } from "../../Poly"; import { NodeParamsConfig } from "../utils/params/ParamsConfig"; class DeletePhysicsRBDKinematicConstraintJsParamsConfig extends NodeParamsConfig { } const ParamsConfig = new DeletePhysicsRBDKinematicConstraintJsParamsConfig(); export class DeletePhysicsRBDKinematicConstraintJsNode extends BaseTriggerAndObjectJsNode { constructor() { super(...arguments); this.paramsConfig = ParamsConfig; } static type() { return "deletePhysicsRBDKinematicConstraint"; } setTriggerableLines(linesController) { const object3D = inputObject3D(this, linesController); const func = Poly.namedFunctionsRegister.getFunction( "deletePhysicsRBDKinematicConstraint", this, linesController ); const bodyLine = func.asString(object3D); linesController.addTriggerableLines(this, [bodyLine]); } }