Problem with a script

I don’t kow How to make this work also for touch.

private void Update()
{
movement = Input.GetAxisRaw(“Horizontal”);
}

private void FixedUpdate()
{
    transform.RotateAround(Vector3.zero, Vector3.forward, movement * Time.fixedDeltaTime * -moveSpeed);
}

Any ideas? thanks a lot

You don’t need to apply transform changes on the FixedUpdate event function, FixedUpdate is for physics related, you should have transform changes on Update event function.

As for having touch input as a replacement for “Input.GetAxisRaw(“Horizontal”)” easy google search will give you the following link.

I suggest you learn about Execution order and what each event function is meant to use for.