#pragma strict
var rotationSpeed = (100);
function Update ()
{
var rotation : float = Input.GetAxis (“Horizontal”) * rotationSpeed;
rotation *= Time.deltaTime;
(AddRelativeTorque)(Vector3.back * rotation);
}
#pragma strict
var rotationSpeed = (100);
function Update ()
{
var rotation : float = Input.GetAxis (“Horizontal”) * rotationSpeed;
rotation *= Time.deltaTime;
(AddRelativeTorque)(Vector3.back * rotation);
}
remove parentheses from the value of rotationSpeed
var rotationSpeed = 100;
apply asterisk in this line
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
and i don’t know what this line is trying to do
(AddRelativeTorque)(Vector3.back * rotation);