in the car tutorial how can i change the forward vector for the car ? the complete scene setup the forward is pointing 45' degree to the track street i want the forward for the car to point always to the front of the car
If i used the above code into the tutorial car it always look at 45' degree it doesnt look straight to the track road.
Sounds like your car has been modelled in your 3d modelling app with its origin (pivot) pointing in the wrong direction.
This is best fixed in the 3d app itself, although you can work around it by parenting your car model to an empty 3d game object. Then you can treat the empty game object as if it were the car (i.e. place scripts on it), and have the incorrectly aligned car model as a child, rotated to face the correct way.
answered Oct 23 '10 at 12:53 PM