• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Argion · Jun 13, 2011 at 11:03 PM · fpssideways

Character doesn't move right

I've been working on an FPS and I added the character in finally. But when I moved the character around, it didn't work. When I moved the character forward, it moved sideways. This is very abnormal as every other time I have used it it worked fine. The terrain is slightly bumpy if that helps anyone. I also used all the default character movement scripts (Character Controller, the Mouse Look, and the FPSWalker scripts).

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Chris D · Jun 13, 2011 at 11:06 PM 0
Share

If it's worked every other time, what have you changed this time around? Can you post any code that you've changed? When you say sideways, is it just like the character is rotated 90 degrees?

avatar image Argion · Jun 13, 2011 at 11:25 PM 0
Share

ok this is a video of what is happening. I did not change any scripts and am only pressing the forward key. http://www.youtube.com/watch?v=8sTg2zsrl88

avatar image Kith · Jun 13, 2011 at 11:27 PM 0
Share

$$anonymous$$y money is still on my answer lol

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Kith · Jun 13, 2011 at 11:18 PM

This sounds like an issue with the models' zaxis not facing the front of the model. Try making the model a child of an empty game object, and attach all the scripts to the empty game object. Make sure the zaxis of the game object is facing the same way as the model.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Ninjaoboy · Jun 13, 2011 at 11:21 PM

you can take the camera and rotate it 90 degrees to face the direction the player is moving, then move to the front center on the side.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Argion · Jun 13, 2011 at 11:45 PM

Ok I am going to clarify. Thank you all for the answers. The object is moving at a 45 degree angle forward. I tried placing it on a flat plane to see if it was the terrain, and it did the same thing.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kith · Jun 13, 2011 at 11:47 PM 0
Share

Have you tried my answer?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Help in Script (Java Script) 0 Answers

Camera Recoil,Please help me. 2 Answers

FPS weapon sway script error 0 Answers

[Android] Why does my enemy die no matter where I am in the 3D environment? 1 Answer

mecanime , change motion/clip animtion ?? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges