UNPKG

@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) 1.09 kB
import{F as s}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as t,d as e,f as i}from"./declarationMapper-D_filC93.esm.min.js";import{u as a}from"./index-BPURObVq.esm.min.js";import"./objectModelMapping-ClgDmo5Q.esm.min.js";import"./spotLight.pure-5s2DDDIt.esm.min.js";class r extends s{constructor(s){super(s),this.body=this.registerDataInput("body",t),this.mass=this.registerDataOutput("mass",e),this.centerOfMass=this.registerDataOutput("centerOfMass",i),this.inertia=this.registerDataOutput("inertia",i)}_updateOutputs(s){const t=this.body.getValue(s);if(!t)return;const e=t.getMassProperties();void 0!==e.mass&&this.mass.setValue(e.mass,s),e.centerOfMass&&this.centerOfMass.setValue(e.centerOfMass,s),e.inertia&&this.inertia.setValue(e.inertia,s)}getClassName(){return"FlowGraphGetPhysicsMassPropertiesBlock"}}let o=!1;function n(){o||(o=!0,a("FlowGraphGetPhysicsMassPropertiesBlock",r))}n();export{r as FlowGraphGetPhysicsMassPropertiesBlock,n as RegisterFlowGraphGetPhysicsMassPropertiesBlock}; //# sourceMappingURL=flowGraphGetPhysicsMassPropertiesBlock-alPDr3ys.esm.min.js.map