Skip to content

A-Frame component to handle the Oculus Rift Controlers

License

Notifications You must be signed in to change notification settings

tbalouet/touch-controls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

touch-controls

A-Frame component to handle the Oculus Rift Touch Controlers

Installing

npm install
npm run start //to launch the web server

Usage

To use this component just add the touch-controls library to your page, and add an entity component for each hand.

<html>
  <head>
    <script src="https://aframe.io/releases/0.3.2/aframe.js"></script>
    <script src="touch-controls.js"></script>
  </head>
  <body>
    <a-scene>
      <a-entity touch-controls="hand: left"></a-entity>
      <a-entity touch-controls="hand: right"></a-entity>

      <!-- Your code here -->
    </a-scene>
  </body>
</html>

#Information I didn't get to find proper hands with all the animations possible with the Touch handling combination. So for now you just see your touch controlers and events are logged in the console.

About

A-Frame component to handle the Oculus Rift Controlers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published