Created
May 2, 2021 07:52
-
-
Save flushpot1125/0856d4c8dca4a4e5c2a279f17f98a304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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