|
Hi! I am having some troubles with my movement script. If I test it with a normal cylinder and a character controller mesh it works fine. The problem is, when I import my model to the scene, it changes the axis or something like that. If I import and select all rotate values to 0 (as image): it works (of course the character is lied) http://img820.imageshack.us/img820/4668/sinrotaar.jpg If I try to rotate the character in the position I want: http://img839.imageshack.us/img839/1065/sinrotar.jpg It doesnt work. I think is something related to the axis, cos I only can Jump. I add my movement script maybe I'm doing something wrong (I know my code is not the best, but I'm still starting and I have to learn a lot). } Thanks in advance!
(comments are locked)
|
|
Very common problem, i would get soo frustrated with this. All you need to do is set the pivot of your model so that Y points up, and Z points forward. In 3dsMax, you go to Affect Pivot Only and rotate it accordingly. I didnt specify before, this will be done in the modeling program itself and not in unity. If youre not sure how to do this, do a "Search engine" search for your modeling program and how to change pivot of model.
(comments are locked)
|
|
Perfect, it works , thanks a lot! Greetings Glad to here it! It took me a little why to understand why this was happening, but once you do you'll never forget :p Can you mark the question as answered please, the lil checkmark under the thumbs. Its also better to respond using comments instead of answers. Happy trails
Mar 18 '12 at 07:35 AM
hijinxbassist
(comments are locked)
|
