@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
3 lines (2 loc) • 975 B
JavaScript
import{c as t}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as i,f as s}from"./declarationMapper-D_filC93.esm.min.js";import{u as e}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class o extends t{constructor(t){super(t),this.body=this.registerDataInput("body",i),this.impulse=this.registerDataInput("impulse",s),this.location=this.registerDataInput("location",s)}_execute(t,i){const s=this.body.getValue(t);if(!s)return this._reportError(t,"No physics body provided"),void this.out._activateSignal(t);const e=this.impulse.getValue(t),o=this.location.getValue(t);s.applyImpulse(e,o),this.out._activateSignal(t)}getClassName(){return"FlowGraphApplyImpulseBlock"}}let r=!1;function a(){r||(r=!0,e("FlowGraphApplyImpulseBlock",o))}a();export{o as FlowGraphApplyImpulseBlock,a as RegisterFlowGraphApplyImpulseBlock};
//# sourceMappingURL=flowGraphApplyImpulseBlock-CfvuCscr.esm.min.js.map