|
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.
(comments are locked)
|
|
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. i'm using the car from the tutorial itself the red one, the global forward for the car is 45' ! why is it like this ? the local is pointing toward the street but when i use the code above its not pointing toward the street !
Oct 23 '10 at 01:43 PM
Khm666
(comments are locked)
|
