1/*! For license information please see 85f62190.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcubic_9_com=self.webpackChunkcubic_9_com||[]).push([[7726],{28453:(e,n,t)=>{t.d(n,{R:()=>l,x:()=>r});var i=t(96540);const o={},a=i.createContext(o);function l(e){const n=i.useContext(a);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),i.createElement(a.Provider,{value:n},e.children)}},73082:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>c,default:()=>h,frontMatter:()=>r,metadata:()=>i,toc:()=>u});const i=JSON.parse('{"id":"Devel/OculusRift/Bobbing-Walking_en","title":"Bobbing-Walking_en","description":"\u65e5\u672c\u8a9e\u30da\u30fc\u30b8\u306f \u3053\u3061\u3089 \u3002","source":"@site/docs/Devel/OculusRift/Bobbing-Walking_en.md","sourceDirName":"Devel/OculusRift","slug":"/Devel/OculusRift/Bobbing-Walking_en","permalink":"/Devel/OculusRift/Bobbing-Walking_en","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"Bobbing-Walking","permalink":"/Devel/OculusRift/Bobbing-Walking"},"next":{"title":"BobbingBots","permalink":"/Devel/OculusRift/BobbingBots"}}');var o=t(74848),a=t(28453),l=t(77833);const r={},c=void 0,s={},u=[{value:"sample project for Unity3D (Bobbing-Walking only)",id:"sample-project-for-unity3d-bobbing-walking-only",level:2},{value:"How to use",id:"how-to-use",level:2},{value:"Warning",id:"warning",level:2},{value:"Examples",id:"examples",level:2},{value:"Contact",id:"contact",level:2},{value:"Thanks",id:"thanks",level:2}];function d(e){const n={a:"a",h2:"h2",li:"li",p:"p",ul:"ul",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.p,{children:["\u65e5\u672c\u8a9e\u30da\u30fc\u30b8\u306f ",(0,o.jsx)(n.a,{href:"./Bobbing-Walking",children:"\u3053\u3061\u3089"})," \u3002"]}),"\n",(0,o.jsx)(n.p,{children:"It's common to use a gamepad for playing games for the Rift."}),"\n",(0,o.jsx)(n.p,{children:"But I want more natural user interface, furthermore without special devices."}),"\n",(0,o.jsx)(n.p,{children:"So I developed Bobbing-Walking."}),"\n",(0,o.jsx)(n.p,{children:"It is a Unity script."}),"\n",(0,o.jsx)(n.p,{children:"When you let the Rift bouncing, you will move forward."}),"\n",(0,o.jsx)(n.p,{children:"If you want to move backward, turn up the front of the Rift and do same."}),"\n","\n",(0,o.jsx)("div",{className:"video-container",children:(0,o.jsx)(l.A,{id:"EtPZzfPVVWw",webp:!0})}),"\n",(0,o.jsxs)(n.p,{children:["I modified AngryBots, a sample game attached to Unity3D, into FPS-style game with Bobbing-Walking and ",(0,o.jsx)(n.a,{href:"./DroidGlove_en",children:"DroidGlove"}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["It's BobbingBots available on ",(0,o.jsx)(n.a,{href:"./BobbingBots_en",children:"this page"}),"."]}),"\n",(0,o.jsx)(n.h2,{id:"sample-project-for-unity3d-bobbing-walking-only",children:"sample project for Unity3D (Bobbing-Walking only)"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"pathname:///assets/OculusRift/bobbingwalking_unity_sample_20160330.zip",children:"bobbingwalking_unity_sample_20160330.zip"})}),"\n",(0,o.jsxs)(n.p,{children:["There is another project. That includes Bobbing-Walking script and DroidGlove receiver script on ",(0,o.jsx)(n.a,{href:"./DroidGlove_en",children:"this page"}),"."]}),"\n",(0,o.jsx)(n.h2,{id:"how-to-use",children:"How to use"}),"\n",(0,o.jsx)(n.p,{children:"BobbingWalkingOVRPlayerController.cs is main script."}),"\n",(0,o.jsx)(n.h2,{id:"warning",children:"Warning"}),"\n",(0,o.jsx)(n.p,{children:"When you use Bobbing-Walking, follow these instructions to prevent falling to the floor."}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"Look at first.You must be at least 7 feet away from other objects."}),"\n",(0,o.jsx)(n.li,{children:"Make a circle on the floor around you with a roll of tape. And do not step outside of that."}),"\n",(0,o.jsx)(n.li,{children:"Do not move fast."}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.a,{href:"./Mikujalus_en",children:"Mikujalus"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.a,{href:"./BobbingBots_en",children:"BobbingBots"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.a,{href:"https://bowlroll.net/file/64586",children:"FROG JUMPER"})}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"contact",children:"Contact"}),"\n",(0,o.jsxs)(n.p,{children:["If you have any question, contact me on ",(0,o.jsx)(n.a,{href:"https://twitter.com/cubic9com",children:"Twitter"}),"."]}),"\n",(0,o.jsx)(n.h2,{id:"thanks",children:"Thanks"}),"\n",(0,o.jsxs)(n.p,{children:["This script was named by ",(0,o.jsx)(n.a,{href:"https://twitter.com/izm",children:"izm"}
2),". Thank you!"]})]})}function h(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},77833:(e,n,t)=>{t.d(n,{A:()=>a});var i=t(96540),o=function(){return o=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},o.apply(this,arguments)};var a=i.forwardRef((function(e,n){var t=i.useState(!1),a=t[0],l=t[1],r=i.useState(e.alwaysLoadIframe||!1),c=r[0],s=r[1],u=encodeURIComponent(e.id),d="string"==typeof e.playlistCoverId?encodeURIComponent(e.playlistCoverId):null,h=e.title,p=e.poster||"hqdefault",m=e.announce||"Watch",f=new URLSearchParams(o(o(o(o({},e.muted?{mute:"1"}:{}),e.alwaysLoadIframe?{}:{autoplay:"1",state:"1"}),e.enableJsApi?{enablejsapi:"1"}:{}),e.playlist?{list:u}:{})),b=e.noCookie;b=e.cookie?"https://www.youtube.com":"https://www.youtube-nocookie.com";var g=e.playlist?"".concat(b,"/embed/videoseries?").concat(f.toString()):"".concat(b,"/embed/").concat(u,"?").concat(f.toString()),j=e.webp?"webp":"jpg",v=e.webp?"vi_webp":"vi",y=e.thumbnail||(e.playlist?"https://i.ytimg.com/".concat(v,"/").concat(d,"/").concat(p,".").concat(j):"https://i.ytimg.com/".concat(v,"/").concat(u,"/").concat(p,".").concat(j)),w=e.activatedClass||"lyt-activated",x=e.adNetwork||!1,k=e.aspectHeight||9,B=e.aspectWidth||16,W=e.iframeClass||"",R=e.playerClass||"lty-playbtn",_=e.wrapperClass||"yt-lite",E=e.onIframeAdded||function(){},C=e.rel?"prefetch":"preload",D=e.containerElement||"article",I=e.style||{};return i.useEffect((function(){c&&E()}),[c]),i.createElement(i.Fragment,null,i.createElement("link",{rel:C,href:y,as:"image"}),i.createElement(i.Fragment,null,a&&i.createElement(i.Fragment,null,i.createElement("link",{rel:"preconnect",href:b}),i.createElement("link",{rel:"preconnect",href:"https://www.google.com"}),x&&i.createElement(i.Fragment,null,i.createElement("link",{rel:"preconnect",href:"https://static.doubleclick.net"}),i.createElement("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net"})))),i.createElement(D,{onPointerOver:function(){a||l(!0)},onClick:function(){c||s(!0)},className:"".concat(_," ").concat(c?w:""),"data-title":h,style:o(o({backgroundImage:"url(".concat(y,")")},{"--aspect-ratio":"".concat(k/B*100,"%")}),I)},i.createElement("button",{type:"button",className:R,"aria-label":"".concat(m," ").concat(h)}),c&&i.createElement("iframe",{ref:n,className:W,title:h,width:"560",height:"315",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,src:g})))}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.