Need help

Hi, i am pretty new to unity 3d and need some help on my movement script. I am using the roll a ball script but currently my player doesn’t face the direction it is moving in and it looks weird. I really need some help on this and am open to all suggestions. I really appreciate it, thanks.

At a guess the local direction of your player doesn’t match the way the character faces (does a ball really have a face?). You could delete your model & try again & line it up properly or you could alter the script so it moves correctly, e.g. If he faces forward but moves to the left when you press forward then alter the script to vector3.right or something like that.

My model is a corn, don’t ask why, and I have tried to delete the model and alter the script but it still doesn’t work.

Stick in a screenshot showing the editor so we can see which way the global & local z-axis are. Also, in what way have you tried altering the script?

I deleted all the alterations before posting the screenshot.

Look, don’t take this the wrong way, but if you are just starting with unity & programming then remove the corn & follow the tutorial exactly. When you have completed it successfully & it is working the way it should then start trying to make small changes. That way you will learn what to do & how everything works together.

I did follow the tutorial exactly before, and then started this game.

So when you press forward the character is moving right?

Yes. It moves in all directions, but doesn’t face the direction it is moving in.

Also, I just tried the script again, and all the directions are confused. Up and down is left and right, and left and right is up and down.

Look at your editor. X is left & right yet your screen shows the x axis as up/down. Also, your script is moving the character but isn’t rotating the character to face the direction it is moving in. That will be shown in a later tutorial

Sorry, but I cannot see where it says that x= up and down.

The xyz gizmo top right of the editor screen

This=

Thankyou for all your help, I really appreciate it, but now I have to go. Bye.