Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Vylax · Apr 26, 2018 at 06:51 PM · cameracamera-movementcamera rotate

Camera shaking when moving around motionless objects

Title. Here's a video showing the problem

I've been trying quite a few solutions: using a script that changes camera's position to player one (doesn't change anything) this was the script:

 public class PlayerFollow : MonoBehaviour {
 
     public Transform player;
     public Vector3 offset = new Vector3(0,1,0);
 
     void Update () {
         transform.position = player.position + offset;
     }
 }

then I tried samnm19's answer on another related post which is adding rigidbody to the camera and freeze it's rotation on all axis (didn't work neither) also tried to edit physics settings but it didn't fix the problem.

Does anybody have an idea on how to fix this ?

EDIT: Also I'm running the game at 144fps with a 144Hz monitor so the frames refresh rate has nothing to do with this problem.

EDIT2: Tryed disabling/enabling character controller and also tried using voids Fixed/Late update instead of Update, didn't fix the problem

Comment
Add comment · Show 11
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 TreyH · Apr 26, 2018 at 06:54 PM 0
Share

Are you using physics at all? If so, you're going to have a bad time moving with Update().

avatar image Vylax TreyH · Apr 26, 2018 at 06:56 PM 0
Share

wdy mean by using physics at all ? using rigidbody and stuffs like that ? if so then no

avatar image Vylax Vylax · Apr 26, 2018 at 06:58 PM 0
Share

Here's what my fpc look like alt text

sans-titre.png (58.3 kB)
avatar image TreyH · Apr 26, 2018 at 06:59 PM 0
Share

Does it persist if you change that to FixedUpdate?

avatar image Vylax TreyH · Apr 26, 2018 at 07:00 PM 0
Share

yep, it still the exact same

avatar image TreyH · Apr 26, 2018 at 07:04 PM 0
Share

Have you tried fixing the camera above your object and seeing if your player is the thing jittering? We can't see how it's controlled, but the camera is just following its position.

avatar image Vylax TreyH · Apr 26, 2018 at 08:19 PM 0
Share

I'm not sure but I think it is, it's like it is just jumping from a position to another with a very little step like 0.01 units but still noticable and I guess this cause shaking when the camera moves on the same pattern

so what should I do to make my movements smoother ? shoud I use physics to move my char ins$$anonymous$$d of the char controller which use some formulas using time.deltaTime

avatar image TreyH Vylax · Apr 26, 2018 at 08:21 PM 0
Share

Can you link the character controller's code that's responsible for the movement?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Vylax · Apr 26, 2018 at 09:09 PM

So after figuring out that it wasn't due to the camera but to the character controller, I tryed out some stuff and figured out that I had to disable the "Use Fixed Update" option and then everything was way smoother.

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

136 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 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 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 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 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 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 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 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 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 avatar image

Related Questions

How to create a panning, rotating camera with Cinemachine Freelook camera? 0 Answers

Unity - Dancing Ball World camera following and rotating system 1 Answer

Would anyone teach me how to create camera movement and look controls? 2 Answers

Cinemachine input axis camera movement,cinemachine input axis control with script 1 Answer

I only rotated X, but Y and Z are shifting as well when I play the game. 1 Answer


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