I am using a script I found there:
http://forum.unity3d.com/viewtopic.php?t=10282
It controls a sphere its movement direction based on the direction of the camera.
var speed = 0.00;
var force = 0.00;
function FixedUpdate ()
{
var oldAngle = Camera.main.transform.localEulerAngles.x;
Camera.main.transform.localEulerAngles.x = 0;
var spin = Camera.main.transform.TransformDirection(Vector3(Input.GetAxis("Vertical") * speed, 0, -Input.GetAxis("Horizontal") * speed));
Camera.main.transform.localEulerAngles.x = oldAngle;
rigidbody.AddTorque(spin * force);
}
It apears that the sphere won;t go faster if you set speed and force higher then 2.
But its way to slow for what I want to do with it and after some tinkering I found it works almost as good when removing the sphere and force variables in the script. (I can’t make it go slower but the maximum speed is to slow anyway)
I asume something elsewere is controlling my maximum speed so any ideas how to overcome this?