Troubleshooting
From UnityCar Wiki
| Line 1: | Line 1: | ||
| + | __TOC__ | ||
== Wheels sinking into terrain == | == Wheels sinking into terrain == | ||
| - | Most of the time this | + | Most of the time this issue is caused by the layer of car GameObject being the same of the layer of the track. To fix this, just change car's GameObject layer (avoid of course Ignore Raycast layer) or even better create a new one. |
| - | To fix this, just change car's GameObject | + | |
| + | This car has layer '''default ''': | ||
| - | + | [[File:Troubleshooting01.jpg|Center]] | |
| - | Most of the time this | + | which is the same of the track: |
| + | [[File:Troubleshooting02.jpg|Center]] | ||
| + | |||
| + | == Wheels rotating around wrong axis == | ||
| + | Most of the time this issue is caused by '''pivot point ''' of wheel mesh GameObject not coinciding with the '''center point ''' and / or '''pivot point ''' and '''center point ''' not located on the center of the wheel mesh. To fix this, correct the center / pivot point of the wheel mesh with a 3D program like 3D Studio or create a new GameObject, place it on center of the wheel, make it the parent of the wheel mesh GameObject and use this as '''Model ''' parameter in Wheel class inspector (don't use the GameObject with Wheel class). | ||
Latest revision as of 12:54, 7 April 2015
Contents |
Wheels sinking into terrain
Most of the time this issue is caused by the layer of car GameObject being the same of the layer of the track. To fix this, just change car's GameObject layer (avoid of course Ignore Raycast layer) or even better create a new one.
This car has layer default :
which is the same of the track:
Wheels rotating around wrong axis
Most of the time this issue is caused by pivot point of wheel mesh GameObject not coinciding with the center point and / or pivot point and center point not located on the center of the wheel mesh. To fix this, correct the center / pivot point of the wheel mesh with a 3D program like 3D Studio or create a new GameObject, place it on center of the wheel, make it the parent of the wheel mesh GameObject and use this as Model parameter in Wheel class inspector (don't use the GameObject with Wheel class).
