Troubleshooting

From UnityCar Wiki

Revision as of 12:54, 7 April 2015 by Unitycar (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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