Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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