(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[672],{3905:function(e,t,r){"use strict";r.d(t,{Zo:function(){return d},kt:function(){return f}});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 i(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),l=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):a(a({},t),e)),r},d=function(e){var t=l(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)}},p=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,s=e.parentName,d=c(e,["components","mdxType","originalType","parentName"]),p=l(r),f=o,m=p["".concat(s,".").concat(f)]||p[f]||u[f]||i;return r?n.createElement(m,a(a({ref:t},d),{},{components:r})):n.createElement(m,a({ref:t},d))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=p;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:o,a[1]=c;for(var l=2;l<i;l++)a[l]=r[l];return n.createElement.apply(null,a)}return n.createElement.apply(null,r)}p.displayName="MDXCreateElement"},6942:function(e,t,r){"use strict";r.r(t),r.d(t,{frontMatter:function(){return c},contentTitle:function(){return s},metadata:function(){return l},toc:function(){return d},default:function(){return p}});var n=r(2122),o=r(9756),i=(r(7294),r(3905)),a=["components"],c={},s="/field",l={unversionedId:"stardust-protocol/server/objects/field",id:"stardust-protocol/server/objects/field",isDocsHomePage:!1,title:"/field",description:"Object managing fields for interaction.",source:"@site/docs/stardust-protocol/server/objects/field.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/field",permalink:"/docs/stardust-protocol/server/objects/field",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/field.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"/environment",permalink:"/docs/stardust-protocol/server/objects/environment"},next:{title:"/hmd",permalink:"/docs/stardust-protocol/server/objects/hmd"}},d=[{value:"Signals",id:"signals",children:[{value:"<code>createBoxField(string name, Vector3 origin, Quaternion orientation, Vector3 size)</code>",id:"createboxfieldstring-name-vector3-origin-quaternion-orientation-vector3-size",children:[]},{value:"<code>createSphereField(string name, Vector3 origin, float radius)</code>",id:"createspherefieldstring-name-vector3-origin-float-radius",children:[]}]}],u={toc:d};function p(e){var t=e.components,r=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,n.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"field"},"/field"),(0,i.kt)("p",null,"Object managing fields for interaction."),(0,i.kt)("h2",{id:"signals"},"Signals"),(0,i.kt)("h3",{id:"createboxfieldstring-name-vector3-origin-quaternion-orientation-vector3-size"},(0,i.kt)("inlineCode",{parentName:"h3"},"createBoxField(string name, Vector3 origin, Quaternion orientation, Vector3 size)")),(0,i.kt)("p",null,"Creates a new ",(0,i.kt)("a",{parentName:"p",href:"/docs/stardust-protocol/server/types/field/BoxField"},"BoxField")," at ",(0,i.kt)("inlineCode",{parentName:"p"},"/field/[name]"),"."),(0,i.kt)("h3",{id:"createspherefieldstring-name-vector3-origin-float-radius"},(0,i.kt)("inlineCode",{parentName:"h3"},"createSphereField(string name, Vector3 origin, float radius)")),(0,i.kt)("p",null,"Creates a new ",(0,i.kt)("a",{parentName:"p",href:"/docs/stardust-protocol/server/types/field/SphereField"},"SphereField")," at ",(0,i.kt)("inlineCode",{parentName:"p"},"/field/[name]"),"."))}p.isMDXComponent=!0}}]);