Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Um I'm actual did GetAxis () function though

No, doing a function with the output of GetAxis, which would then give you a proper curve for movement.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotator : MonoBehaviour
{
    public float speed;

    void FixedUpdate()
    {
        float input = Input.GetAxis("Horizontal");
        float currentRot = transform.rotation.z;
        currentRot += input * speed * Time.deltaTime;
        transform.rotation = Quaternion.Euler(0, 0, currentRot);
    }
}