My character is super slow, even if I set the speed to “100f” it doesn’t change the speed of the player at all!
The code I’m using is in a script in my “FirstPersonPlayer” which consists of a main camera and a cylinder. Below is my player movement script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovementScript : MonoBehaviour
{
public CharacterController controller;
public float speed = 20f;
// Update is called once per frame
void Update()
{
float x = Input.GetAxis("Horizontal");
float z = Input.GetAxis("Vertical");
Vector3 move = transform.right * x + transform.forward * z;
controller.Move(move * Time.deltaTime);
}
}
Any help would be greatly appreciated.
Thank you!