(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[74],{3905:function(e,t,r){"use strict";r.d(t,{Zo:function(){return p},kt:function(){return d}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},p=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},b=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),b=c(r),d=o,f=b["".concat(s,".").concat(d)]||b[d]||u[d]||a;return r?n.createElement(f,i(i({ref:t},p),{},{components:r})):n.createElement(f,i({ref:t},p))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=b;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:o,i[1]=l;for(var c=2;c<a;c++)i[c]=r[c];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}b.displayName="MDXCreateElement"},1507:function(e,t,r){"use strict";r.r(t),r.d(t,{frontMatter:function(){return l},contentTitle:function(){return s},metadata:function(){return c},toc:function(){return p},default:function(){return b}});var n=r(2122),o=r(9756),a=(r(7294),r(3905)),i=["components"],l={},s="/spatial",c={unversionedId:"stardust-protocol/server/objects/spatial",id:"stardust-protocol/server/objects/spatial",isDocsHomePage:!1,title:"/spatial",description:"Object managing spatial nodes for parenting.",source:"@site/docs/stardust-protocol/server/objects/spatial.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/spatial",permalink:"/docs/stardust-protocol/server/objects/spatial",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/spatial.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"/model",permalink:"/docs/stardust-protocol/server/objects/model"}},p=[{value:"Signals",id:"signals",children:[{value:"<code>create(string name, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)</code>",id:"createstring-name-vector3-origin-quat-orientation-vector3-scale-bool-translatable-bool-rotatable-bool-scalable",children:[]}]}],u={toc:p};function b(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,n.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"spatial"},"/spatial"),(0,a.kt)("p",null,"Object managing spatial nodes for parenting."),(0,a.kt)("h2",{id:"signals"},"Signals"),(0,a.kt)("h3",{id:"createstring-name-vector3-origin-quat-orientation-vector3-scale-bool-translatable-bool-rotatable-bool-scalable"},(0,a.kt)("inlineCode",{parentName:"h3"},"create(string name, Vector3 origin, Quat orientation, Vector3 scale, bool translatable, bool rotatable, bool scalable)")),(0,a.kt)("p",null,"Creates a new ",(0,a.kt)("a",{parentName:"p",href:"/docs/stardust-protocol/server/types/Spatial"},"Spatial")," at ",(0,a.kt)("inlineCode",{parentName:"p"},"/spatial/[name]"),"."))}b.isMDXComponent=!0}}]);