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