@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) • 923 B
JavaScript
import{c as t}from"./KHR_interactivity-D4lwBSW9.esm.min.js";import{R as e,f as i}from"./declarationMapper-D_filC93.esm.min.js";import{u as o}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.velocity=this.registerDataInput("velocity",i)}_execute(t,e){const i=this.body.getValue(t);if(!i)return this._reportError(t,"No physics body provided"),void this.out._activateSignal(t);i.setAngularVelocity(this.velocity.getValue(t)),this.out._activateSignal(t)}getClassName(){return"FlowGraphSetAngularVelocityBlock"}}let r=!1;function a(){r||(r=!0,o("FlowGraphSetAngularVelocityBlock",s))}a();export{s as FlowGraphSetAngularVelocityBlock,a as RegisterFlowGraphSetAngularVelocityBlock};
//# sourceMappingURL=flowGraphSetAngularVelocityBlock-DxgyDX87.esm.min.js.map