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
1
Question by esteoh · Jun 17, 2013 at 12:49 AM · rotationwebplayerfps controller

Camera Rotation isn't synchronized with FPS Controller Rotation.

Hello,

I'm currently having a problem with a Standart First Person Controller. I use the Standart Asset and didn't change any parameters of the scripts and the error occurs in the Webplayer - not in Unity itself.

The Camera rotates faster than the character. When the scene starts, and I press W to run forward, everything works as expected. But when I turn my character for example 180° to the right and run forward again, the character runs to the left.

Any Ideas what that is and how I can fix it? I Am thankful for any help or hint!

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 CgShady · Jul 08, 2013 at 11:56 PM 0
Share

I'm just having the same issue. There must be something wrong with the Input Class and the Web Player.

It was working fine with previous versions.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by CgShady · Jul 22, 2013 at 09:58 PM

Ok, got it. Here goes :

for some odd reason, when in the WebPlayer, the Axes are reset to their defaults MouseXandY for both the Character Controller and its camera. (I love Unity's debugger !)

So, here's fix/hack

To be added to the Start method of MouseLook.cs

 #if UNITY_WEBPLAYER
         // HACK : fix for FPC mouselook issue in the webplayer
         if (gameObject.CompareTag ("Player"))
             axes = RotationAxes.MouseX ;
             
         if (gameObject.CompareTag ("MainCamera"))
             axes = RotationAxes.MouseY ;
             

// Debug.Log (string.Format ("MouseLook : {0} on {1}", gameObject.name, axes)) ;

 #endif

This will force the settings upon start when compiling for Web Player

Note, this is not a web player bug, as application compiled with earlier versions of Unity work just fine. This seems to be a bug added to Unity somewhere between 4.1.x and 4.1.5

Cheers

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

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

15 People are following this question.

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

Related Questions

Keep the scene view rotation of my camera in play mode (it resets to 0) [EXAM ^^] 1 Answer

FPS Controller rotation,FPS Controller rotation problem 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

why is the mouse look messing up on the new fps character 0 Answers

How do you make a Raycast follow your mouse in an FPS? 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