Understanding MobileSingleStickControl Speed Control (unity ver 5.1.3 f1)

Asked 2 years ago, Updated 2 years ago, 46 views

I made a game on Android and I'm making final adjustments.
If I use the joystick above and move it too fast, I'd like to slow down the speed a little bit, what should I do?

By the way, it is described like this.

 vector.x = CrossPlatformInputManager.GetAxis("Horizontal");
vector.z = CrossPlatformInputManager.GetAxis("Vertical");

c#

2022-09-29 21:22

1 Answers

You should multiply the input by a constant less than 1.

This post was posted as a community wiki based on @pgrho's comments.


2022-09-29 21:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.