Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 gummybug12 · Jan 28, 2015 at 11:56 PM · cameracontroller

First person controller movement direction incorrect

I've googled it, but i can't seem to find the problem.

Whenever I start the game, and use the controller, EDIT: the character appears to move relative to the x/y/z axis rather than where i'm looking/camera is facing. anyone got a solution?

(I'm using Unity's first person controller btw)

I FOUND THE PROBLEM lol it turns out i had a mouse look script on the camera itself, and the character, i just removed the one on the camera and now it works fine lol thx for all ur help guys

Comment
Add comment · Show 1
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 SnStarr · Jan 29, 2015 at 12:31 AM 0
Share

Are you using a Smooth follow or Smooth Look At script on the Camera object?

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by RetepTrun · Jan 29, 2015 at 01:15 AM

Maybe you forgot to add a mouselook script to the controller for rotation on left right. Camera should only have up/dwn.

Comment
Add comment · Show 3 · 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 gummybug12 · Jan 29, 2015 at 09:55 PM 0
Share

The Camera is just fine, the character is moving in the wrong direction.

avatar image Cherno · Jan 30, 2015 at 01:15 AM 0
Share

I had the same problem. In my case, it was caused by my custom $$anonymous$$ouseLook script: I only rotated the camera's anchor (the "head", so to speak) around it's y axis, wheras it should have been the character itself. If you look at your selected CharacterController's Capsule from scene view, does it rotate around it's y axis when moving the mouse left and right? If not, then you know what is causing your problem :)

avatar image dirtbikeguy55 · Jan 30, 2015 at 03:27 AM 0
Share

Did you see if the buttons were set right in the input settings?

avatar image
0

Answer by mavii_ege · Jan 30, 2015 at 03:29 AM

you need to add mouselook script to character and camera

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 JCalwaysbeatsErick · Jan 30, 2015 at 03:29 AM

You might wanna check your local or global camera settings.or reset the coordinates on the main camera axis located in the inspector.

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 awplays49 · Jan 30, 2015 at 03:29 AM

Use

 transform.forward

And not

 Vector3.forward
Comment
Add comment · Show 2 · 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 gummybug12 · Jan 31, 2015 at 02:03 AM 0
Share

@awplays49 in which script?

if it helps, the scripts being used are:

$$anonymous$$ouseLook

Character$$anonymous$$otor

FPSInputController

And my custom $$anonymous$$ouse lock script, but all it does is use the Screen.lockCursor function

avatar image meat5000 ♦ · Jan 31, 2015 at 02:04 AM 1
Share

@Gummybug12 Please dont post comments as Answers. Find the relevant Add New Comment button under the comment or answer you wish to reply to.

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.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Camera stutters a lot when looking around (need help) 2 Answers

Issue with my camera controls 0 Answers

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Freezes camera/controller when interacting with object 0 Answers

configure first person controller at runtime 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges