Troubleshooting

From UnityCar Wiki

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 +
__TOC__
== Wheels sinking into terrain ==
== Wheels sinking into terrain ==
-
Most of the time this problem is caused by the fact that car's GameObject layer and terrain layer are the same.
+
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 layer using any other layer (expect of course Ignore Raycast) or even better add a new one.
+
 +
This car has layer '''default ''':
-
== Wheels shaking vertically or strange car behavior ==
+
[[File:Troubleshooting01.jpg|Center]]
-
Most of the time this problem is caused by the fact that car's GameObject layer and collider's GameObject layer are NOT the same. To fix this, just set car's GameObject layer and collider's GameObject layer to the same layer.
+
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 :

Center

which is the same of the track: 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).

Personal tools
Car Tuning
Track Tutorials
Configuration