Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Fatalis · Aug 23, 2017 at 04:32 AM · physicsanimatorcharacter movementcamera movementroot motion

Character and Camera motion smooth in Editor, but jitters in Build

My team and I have been struggling to get smooth character and camera motion in builds (in editor everything is smooth as butter). Once you start playing the game in a build, the character appears very jittery and the camera acts like it is getting hung up and second or so (this is less noticeable at higher framerates, but makes the game near unplayable at lower framerates of 40 or lower). We are using 5.6.3f1 and so far have tried every option possible as far as what we've come across on Unity Asks and the forums. Our characters use root motion and have rigidbodies, the camera of course does not.

Thus far we have tried:

  • Putting the camera in FixedUpdate, Update, and LateUpdate.

  • Trying tons of different methods to lerp the camera position and rotation to make it smooth.

  • Tried all update modes on the character's animator Normal,
    AnimatePhysics, and Unscaled Time.

  • Tried having Interpolate on, off, and Exterpolate.

  • Adjusting physics manager settings, including Default Contact Offset,
    Sleep Threshold, Default Solver
    Iterations, and Default Solver
    Velocity Iterations.

  • Lowering Time Scale in editor to try to reproduce the jitter in-editor,
    doing so does not reproduce jitter.

  • Capping framerate to 40, 30, 20, and 10 in editor, doing so also does not reproduce jitter.

I think it is reasonable to assume that SOMETHING, some setting is getting changed in the build. Is this an actual Unity bug, or does anyone else have a similar problem or idea as to what is going on?

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 bobisgod234 · Aug 23, 2017 at 07:53 AM 0
Share

$$anonymous$$y advice would be to deal with each (character and camera) problem separately.

Does the character still jitter with no special camera (just a regular static camera)?

Does the camera keep hanging when tracking an object that is confirmed to move smoothly (e.g. a default cube moved with transform.translate)?

Also try:

Removing the rigidbody and collider, and anything physics related from the player and seeing if its still jittery (it should still be able to move with root motion).

Long shot, but the character's rigidbody doesn't happen to be a child of another rigidbody by any chance? I had endless problems getting smooth motion in a set up like that.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Disco_Doctor · Nov 19, 2021 at 08:10 PM

The root problem lies in the fact that the camera is not a Rigidbody. Basically whats happening is that the camera is not moving in sync with the rigidbody (one moves with unity's engine and the other within unity's physics engine). Simply make the camera a kinematic rigidbody, then apply rotations using rigidbody methods. Of course don't forget to mark it: interpolated (or not if your player isnt although recommended).

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

122 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

Related Questions

How to prevent camera jitter when moving my Rigidbody first person controller 4 Answers

How does the Animator drive Rigidbody with root motion (in detail)? 1 Answer

Calculating linear speed at a point on a rotating platform 0 Answers

Animations blending in weird way (maybe something to do with root motion?) 0 Answers

How to make character rotate and animation play?,How Do you make character rotate and the animation play? 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