I think I might be missing something here with regards to Input.GetAxis. No matter what I do, I can’t seem to affect the speed added to my rigidbody.
using UnityEngine;
using System.Collections;
public class PlayerControl : MonoBehaviour
{
public float speed = 1.0f;
[...]
void FixedUpdate ()
{
float foreAndAft = Input.GetAxis ("Vertical") * speed;
Debug.Log (foreAndAft);
rigidbody.AddRelativeForce (0, 0, foreAndAft);
}
My log shows a consistent 16 for the forAndAft Debug.Log command. I thought Input.GetAxis returned a value from -1 to 1.
No matter how low I set the speed variable - even to incredibly-close-to-zero values, the rigidbody always moves too quickly.
Any insight would be greatly appreaciated. Thanks