- Home /
This question was
closed Jan 05, 2015 at 12:26 PM by
Graham-Dunnett for the following reason:
Duplicate Question
Please help with this script (unexpected char 0xFEFF)
Please help me with this error, when I save my script, it said: error unexpected char: 0xFEFF (15,2)
#pragma strict
var wheel1FL : WheelCollider;
var wheel1FR : WheelCollider;
var wheel1RL : WheelCollider;
var wheel1RR : WheelCollider;
var MaxTorque : float = 50;
function Start () {
rigidbody.centerOfMass.y = -0.9;
}
function FixedUpdate () {
wheel1RR.motorTorque = MaxTorque * Input.GetAxis("Vertical");
wheel1RL.motorTorque = MaxTorque * Input.GetAxis("Vertical");
wheel1FL.steerAngle = 10 * Input.GetAxis("Horizontal");
wheel1FR.steerAngle = 10 * Input.GetAxis("Horizontal");
}
Comment