@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) • 957 B
JavaScript
import{c as t}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as e,f as o}from"./declarationMapper-D_filC93.esm.min.js";import{u as i}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class s extends t{constructor(t){super(t),this.body=this.registerDataInput("body",e),this.force=this.registerDataInput("force",o),this.location=this.registerDataInput("location",o)}_execute(t,e){const o=this.body.getValue(t);if(!o)return this._reportError(t,"No physics body provided"),void this.out._activateSignal(t);const i=this.force.getValue(t),s=this.location.getValue(t);o.applyForce(i,s),this.out._activateSignal(t)}getClassName(){return"FlowGraphApplyForceBlock"}}let r=!1;function a(){r||(r=!0,i("FlowGraphApplyForceBlock",s))}a();export{s as FlowGraphApplyForceBlock,a as RegisterFlowGraphApplyForceBlock};
//# sourceMappingURL=flowGraphApplyForceBlock-DDLv8WVU.esm.min.js.map