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-BMn2G2LI.esm.min.js";import{R as t,d as e,f as i}from"./declarationMapper-sl3auZpG.esm.min.js";import{u as a}from"./index-OM-TXt9s.esm.min.js";import"./objectModelMapping-DA3c5cv8.esm.min.js";import"./spotLight.pure-guqQj5Iw.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-BLk3aP94.esm.min.js.map