wheel script raycast

Hello…

I’m using the wheel script from the Unity Car tutorial. when I build the game the car wont move. it says “Scene::raycastClosestShape: The maximum distance must be greater than zero!”

than I clicked the error and it says the problem is in the Wheel.cs in line 268

here is the line 286 from the Wheel script

bool onGround = Physics.Raycast( pos, -up, out hit, suspensionTravel + radius);

does anyone know how to fix this.

Thank you

this problem came to me with Unity 4.0 don’t know why

I’ve just read another post on the same topic and apparently you have to remove one of the two “wheel” scripts from your folder: one is js and the other is c#. Conflict lies there with 4.x.