Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/6aded65b5a0c451d4540f50a1579b441 to your computer and use it in GitHub Desktop.
Save flushpot1125/6aded65b5a0c451d4540f50a1579b441 to your computer and use it in GitHub Desktop.
//stick
webVRController.onPadValuesChangedObservable.add((stateObject)=>{
if(webVRController.hand ==='left'){
console.log("[Left]x:"+stateObject.x+",y:"+stateObject.y);
}else{
console.log("[Right]x:"+stateObject.x+",y:"+stateObject.y);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment