"use strict";(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[74],{3905:function(t,e,a){a.d(e,{Zo:function(){return p},kt:function(){return b}});var r=a(7294);function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function i(t){for(var e=1;e=0||(n[a]=t[a]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}var l=r.createContext({}),c=function(t){var e=r.useContext(l),a=e;return t&&(a="function"==typeof t?t(e):i(i({},e),t)),a},p=function(t){var e=c(t.components);return r.createElement(l.Provider,{value:e},t.children)},u={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},d=r.forwardRef((function(t,e){var a=t.components,n=t.mdxType,o=t.originalType,l=t.parentName,p=s(t,["components","mdxType","originalType","parentName"]),d=c(a),b=n,m=d["".concat(l,".").concat(b)]||d[b]||u[b]||o;return a?r.createElement(m,i(i({ref:e},p),{},{components:a})):r.createElement(m,i({ref:e},p))}));function b(t,e){var a=arguments,n=e&&e.mdxType;if("string"==typeof t||n){var o=a.length,i=new Array(o);i[0]=d;var s={};for(var l in e)hasOwnProperty.call(e,l)&&(s[l]=e[l]);s.originalType=t,s.mdxType="string"==typeof t?t:n,i[1]=s;for(var c=2;ccreateSpatial(string name, string spacePath, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)",id:"createspatialstring-name-string-spacepath-vector3-origin-quat-orientation-vector3-scale-bool-translatable-bool-rotatable-bool-scalable",children:[]},{value:"createZone(string name, string fieldPath, string spacePath, Vector3 origin, Quat orientation, string callbackPath, string callbackMethod)",id:"createzonestring-name-string-fieldpath-string-spacepath-vector3-origin-quat-orientation-string-callbackpath-string-callbackmethod",children:[]}]}],u={toc:p};function d(t){var e=t.components,a=(0,n.Z)(t,i);return(0,o.kt)("wrapper",(0,r.Z)({},u,a,{components:e,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"spatial"},"/spatial"),(0,o.kt)("p",null,"Object managing spatial objects and spatial manipulation."),(0,o.kt)("h2",{id:"signals"},"Signals"),(0,o.kt)("h3",{id:"createspatialstring-name-string-spacepath-vector3-origin-quat-orientation-vector3-scale-bool-translatable-bool-rotatable-bool-scalable"},(0,o.kt)("inlineCode",{parentName:"h3"},"createSpatial(string name, string spacePath, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)")),(0,o.kt)("p",null,"Creates a new ",(0,o.kt)("a",{parentName:"p",href:"/docs/stardust-protocol/server/types/Spatial"},"Spatial")," at ",(0,o.kt)("inlineCode",{parentName:"p"},"/spatial/spatial/[name]")," with parent at ",(0,o.kt)("inlineCode",{parentName:"p"},"spacePath"),"."),(0,o.kt)("h3",{id:"createzonestring-name-string-fieldpath-string-spacepath-vector3-origin-quat-orientation-string-callbackpath-string-callbackmethod"},(0,o.kt)("inlineCode",{parentName:"h3"},"createZone(string name, string fieldPath, string spacePath, Vector3 origin, Quat orientation, string callbackPath, string callbackMethod)")),(0,o.kt)("p",null,"Creates a new ",(0,o.kt)("a",{parentName:"p",href:"/docs/stardust-protocol/server/types/Zone"},"Zone")," at ",(0,o.kt)("inlineCode",{parentName:"p"},"/spatial/zone/[name]")," with parent at ",(0,o.kt)("inlineCode",{parentName:"p"},"spacePath")," and field at ",(0,o.kt)("inlineCode",{parentName:"p"},"fieldPath"),". The arguments ",(0,o.kt)("inlineCode",{parentName:"p"},"callbackPath")," and ",(0,o.kt)("inlineCode",{parentName:"p"},"callbackMethod")," refer to a callback method accepting a ",(0,o.kt)("inlineCode",{parentName:"p"},"Vector")," of 2 ",(0,o.kt)("inlineCode",{parentName:"p"},"TypedVector"),"s, the first being a list of names of nodes that have just entered the field and the second being names of nodes that left (as ",(0,o.kt)("inlineCode",{parentName:"p"},"string"),")."))}d.isMDXComponent=!0}}]);