![]() But this is bug-prone and hard to consistently achieve good results with. You could automate this by spawning the model inside an empty GameObject and adjusting its transform accordingly in code. However, it requires manual object placement into the correct orientation first and wrapping it inside another GameObject. The second option, indeed, fixes the problem seen with the first method, and is a viable solution. ![]() You can fix this using the second option. You use Transform.forward vector to move the object in the direction it is facing but your model, instead of strutting forward, suddenly moonwalks backwards, or sideways. But the joy appears to be short-lived when you try to manipulate the object's Transform in code. You have your model and you're enjoying the fruits of your hard labor. The first option works great at first since you don't have to do anything extra.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |