N
N
NitroFuNyx2020-07-10 19:33:26
Unity
NitroFuNyx, 2020-07-10 19:33:26

Does the script work differently on a computer and a phone?

I have a RigidBody object in it Addforce with its own values ​​it works in the FixedUpdate method. So the bottom line is that if you work in Unity and test the game in it, then everything is OK, but if you put the same game on your phone, my object flies around the scene with incredible force

if (Input.GetMouseButton(0))
            _MouseControl = Input.GetAxis("Mouse X");
            rb.AddForce(Vector3.right* TransformRightSpeed* _MouseControl, ForceMode.Impulse);


When you click on the phone screen (even without moving it), it immediately flies away ..

If someone did not understand my descriptions, here is a link to the video how it works in practice Video

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question