My code seems to be the same as Ricks
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting.FullSerializer;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
float xThrow = Input.GetAxis("Horizontal");
float yThrow = Input.GetAxis("Vertical");
float xOffset = xThrow * Time.deltaTime;
float newXPos = transform.localPosition.x + xOffset;
transform.localPosition = new Vector3
(transform.localPosition.x + newXPos,
transform.localPosition.y,
transform.localPosition.z);
}
}
Ive tried making a float of 0.1f for the speed of the xThrow and multiplying xThrow by xThrowSpeed by Time.deltaTime and that yielded 0 change. I used a controller to see if I got a different output due to sensitivity and it returned the same results.