Guten Tag ich bin grade ma dabei ein RaceGame zu schreiben doch ich bekomme errors hir mein code:
Code
var leftWheel : WheelCollider;//hir
var rightWheel : WheelCollider;
var maxTorque = 260.0;
function Start () {
rigidbody.centerOfMass.y = 0;
}
function Update () {
leftWheel.motorTorque = maxTorque * Input.GetAxis("Vertical");
rightWheel.motorTorque = maxTorque * Input.GetAxis("Vertical");
leftWheel.steerAngle = 10 * Input.GetAxis("Horizontal");
rightWheel.steerAngle = 10 * Input.GetAxis("Horizontal");
}
Alles anzeigen
// der error:
Code
WARNING: Namespace"System.Collections" is never used.(BCW0016)
WARNING: Namespace"Unity.Editor" is never used.(BCW0016)
Danke für jede Hilfe
mfg. Fabi.StaR