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 ProNoob2 · Dec 11, 2018 at 09:54 AM · playerview

Unity Camera Jerking On Following Player

A Player (EmptyGameObject) which has a child that has a RigidBody2d is moving. The Camera is orthographic and is following the Player (EmptyGameObject). Camera is following the Player in LateUpdate. Player is moving in Update using translate. Everything is working fine but the camera is creating a shivering effect. When camera is following Player in LateUpdate the effect is on every gameObject in the scene. But when the camera is following Player in FixedUpdate the effect is only on Player (EmptyGameObject).

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by nicholasw1816 · Dec 11, 2018 at 10:30 AM

I have seen this before my guy, on your characters rigidbody component, select interpolate in the dropdown. Put the character movement code in FixedUpdate. Then put the camera movement code in Update. That should do the trick.... For some reason when one of these is off, it will jitter when the player moves.

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 ProNoob2 · Dec 11, 2018 at 10:50 AM 0
Share

@nicholasw1816 I tried your solution but it didnt work. I tried interpolate as well as extrapolate. Did exactly as u just said.

avatar image nicholasw1816 ProNoob2 · Dec 12, 2018 at 03:29 PM 0
Share

Added a forth thing to check. $$anonymous$$ake sure you do ALL these, can't stress that enough. (1) Camera follow $$anonymous$$UST be in Update() (2) Char movement $$anonymous$$UST be in Fixed update() (3) Character Rigidbody $$anonymous$$UST set to interpolate. (4) Go to Edit/ProjectSettings/Time, make sure (Fixed Timestep = 0.025) & ($$anonymous$$aximum allowed timestep = 0.33333) Do ALL these my guy! I'm sure that will work, if not show me screen shot of your camera movement code & character movement code.

avatar image ProNoob2 · Dec 11, 2018 at 10:51 AM 0
Share

@nicholasw1816 If i move the scene and keep the camera static, the problem still occurs. If i move the camera and keep the scene static (testing purposes) it still shivers.

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

115 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

Related Questions

Make object transparent when between camera and player 11 Answers

Bounds of players on screen 2 Answers

How to check if an object is in the players view? 1 Answer

Directing players view in FPS, showing things of interest 0 Answers

Network view not attached 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