- Home /
maya model moving upward instead of forward
Okej my friend made this maya model tank that i imported as FBX worked just fine, got the tank so then i replaced my old tank with the new one but the new tank refuse to move forward and starts to move upwards while the old tank works just fine.
so i wonder if ya guys got any ide how to fix it ? think its something about the parts of the tank is colliding and there fore making it go upwards or something like that.
anyway hope someone understand how i mean and could help me
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis("Vertical");
controller.SimpleMove(forward * curSpeed);
is what i use to move the tank btw
You mentioned tank colliders. How many do you have, and how are they positioned? Do any of them overlap?
cheeked and think all part of the tank got a $$anonymous$$esh-Collider and its some were around 80-150 parts i think and some part overlap i think but should it work to just remove the $$anonymous$$esh-Collider then ?
Answer by spinaljack · May 01, 2010 at 09:13 AM
Make sure that the blue arrow in your editor window is facing forward, if it isn't your model was imported backwards and you need to put the model in a parent object, then you place your move script in the parent object
Answer by Rush-Rage-Games · Dec 09, 2010 at 05:54 PM
The script might be using the world direction not local direction. Check out this video. http://www.unity3dstudent.com/2010/07/beginner-b18-local-vs-world-direction/