I am new in scripting and i need some help. I want to make a car project ( first person ) and i need script for steering wheel. I try to write a code but β¦ dont work ![]()
var TurnSpeed : float =0.1;
function LateUpdate ()
if ( Input.GetKey(βaβ) )
{
this.tranform.Rotate(0.-this.TurnSpeed,0);
this.transform.localPosition.TurnSpeed = Vector3(0, 0, 0);
}
if ( Input.GetKey(βdβ) )
{
this.transform.Rotate(0,this,TurnSpeed,0)
this.transform.localPosition.TurnSpeed = Vector3(0, 0, 0);
}