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/0856d4c8dca4a4e5c2a279f17f98a304 to your computer and use it in GitHub Desktop.
Save flushpot1125/0856d4c8dca4a4e5c2a279f17f98a304 to your computer and use it in GitHub Desktop.
thumbstickComponent.onAxisValueChangedObservable.add((axes) => {
//Box_Right_ThumbStick is moving according to stick axes but camera rotation is also changing..
Box_Right_ThumbStick.position.x += (axes.x)/100;
Box_Right_ThumbStick.position.y += (axes.y)/100;
// console.log(values.x, values.y);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment