• 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 /
This question was closed Sep 30, 2013 at 06:56 AM by Fattie for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by DevMac1 · Aug 05, 2013 at 02:00 PM · pysics

stuttering physics

When I try to move my character-object (car on road) by physics (rigidbody.velocity) it vibrates a little when mooving! And because my camera is following t$$anonymous$$s object, it is vibrating too and everyt$$anonymous$$ng became stuttering on screen! Where is my problem? I try everyt$$anonymous$$ng to fix it!

Comment
Add comment · Show 8
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 CHPedersen · Aug 05, 2013 at 02:04 PM 0
Share

It's hard to know precisely where your problem is when you don't post any code, but often, physics stuttering has to do with incorrect usage of time dependent physics, eg. using physics in Update where it should be FixedUpdate, or using it in FixedUpdate but still multiplying by Time.deltaTime, and so on.

Anyway, post some code, then I'm sure someone will have a look at it.

avatar image robhuhn · Aug 05, 2013 at 02:07 PM 1
Share

Try setting Rigidbody->Interpolate to Interpolate

http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody-interpolation.html

avatar image DevMac1 robhuhn · Aug 05, 2013 at 02:28 PM 0
Share

It became worse! Object begun to slowing down and stuck every second!

avatar image robhuhn robhuhn · Aug 05, 2013 at 02:36 PM 1
Share

Do you set rigidbody.velocity directly?

avatar image robhuhn robhuhn · Aug 05, 2013 at 02:44 PM 1
Share

Didn't try to set the velocity directly before but the docs says this can result in unrealistic behaviour: http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody-velocity.html Not sure if using AddForce() will solve the issue.

Show more comments

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by DevMac1 · Aug 05, 2013 at 02:57 PM

Thank you, I found, that my variable CurrentSpeed (from code below) was changing in Update() too, so, moving it to FixedUpdate() solve the problem! Thx!

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

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Expert question - I want to find out the vector of the lowest vertex from the centre point of an object 1 Answer

(at very high altitude many objects are created)How to make the object broke from falling answer 1 Answer

Performing if loop multiple times to perform attack animation 1 Answer

Basics on 2d gameplay for a 2.5d Game 1 Answer

Pysics not working as expected 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