• 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 Strigop · Mar 21, 2013 at 05:13 PM · choppy

Simple 2d Rigidbody + Force = Choppy Stuttering Ball

Hey everyone. We are having animation stuttering issues with Unity. We had the issues with Unity 4 and now 4.1. It is an incredibly simple breakout game that we are building based on a tutorial.

We have Googled around and see a lot of complaints about the stuttering issue and have applied the suggested fixes without any success.

You can see the game here on the web:

http://www.strigopstudios.com/bricksweb

We have tried: VSync Settings - no help Interpolation - no help Angular drag - no help Adjusting ball speed - slower seems to help a bit We tested on PC, Mac, and Web Player with the same results

We stripped down the code to barebones. The ONLY code in the entire program is on the ball and it is the initial push rigidbody.AddForce (100f, 700f, 0); on Start().

We created a particle generator w$$anonymous$$ch generated 10,000 particles at a time, and had no lag. I don't believe t$$anonymous$$s is lag, it just looks choppy. T$$anonymous$$s is not a hardware issue.

The issue is described here by another poster:

http://answers.unity3d.com/questions/299204/2d-jerky-motion-with-addforce-and-physics.html

Seems kinda of strange that Unity can push a huge number of smooth particle animations but cannot move a single object smoothly.

Any thoughts? Any help is greatly appreciated, nobody seems to be answering t$$anonymous$$s question on goggle. Thanks!

EDIT: Reuploaded with a different background as requested by Olgo

http://www.strigopstudios.com/bricksweb2

The problem is most noticeable when the ball is traveling at an extreme angle, watch for about 30 seconds, I still see it, but maybe it's an optical illusion. All help appreciated, thanks everyone for comments so far and for future help!

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 Olgo · Mar 21, 2013 at 06:21 PM 0
Share
avatar image Benproductions1 · Mar 21, 2013 at 09:55 PM 0
Share
avatar image Strigop · Mar 21, 2013 at 09:57 PM 0
Share
avatar image Benproductions1 · Mar 21, 2013 at 10:13 PM 0
Share
avatar image sparkzbarca · Mar 21, 2013 at 10:20 PM 0
Share
Show more comments

2 Replies

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

Answer by Strigop · Mar 24, 2013 at 05:45 PM

OK so after reading everyone's responses and tweaking settings and trying new t$$anonymous$$ngs, we have come to the conclusion that a lot of responses are correct. We believe t$$anonymous$$s to be an optical illusion, and we found a very simple way to demonstrate the effects of the optical illusion and then how to minimize the effect.

Example (Choppiness Optical Illusion Effect):

The two links below demonstrate the optical illusion. Watch the ball carefully and you will notice that the ball seems to teleport / skip / or appear choopy

http://www.strigopstudios.com/bricksweb/

http://www.strigopstudios.com/bricksweb2/

My belief is that t$$anonymous$$s illusion is because you are trying to follow the only moving object in the scene with your eyes and your eyes can't keep up (as stated by some comments above). Also you notice every minor twitch in the ball. T$$anonymous$$s effect can be minimized / removed completely with the following demonstration

Example 2 (Smooth movement - same code, same objects, but now with more balls (heh) ):

http://www.strigopstudios.com/bricksweb3/

Notice now that with more distractions and more movement, the movement seems smoother and has no choppiness effect. You can recreate t$$anonymous$$s effect by picking 1 single ball, and trying to follow it with your eyes. The effect is still less though than the other 2 examples because there are other objects moving w$$anonymous$$ch cause a distraction. T$$anonymous$$s is my theory along with some other users who responded above. Thank you everyone for your quick help and assistance, and hopefully t$$anonymous$$s thread will help others searc$$anonymous$$ng for a similar issue.

In summary: The ball does appear choppy when alone, so it is actually an issue that should be addressed by the game developer. Adding other objects that move or other animations help create the illusion of smooth movement and immerse the player in a better gameplay experience.

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 Loius · Mar 24, 2013 at 06:21 PM 0
Share
avatar image Strigop · Mar 27, 2013 at 07:43 PM 0
Share
avatar image Loius · Mar 27, 2013 at 07:44 PM 0
Share
avatar image
3

Answer by stuatk · Nov 26, 2013 at 02:20 PM

oh dear.

Try turning Interpolate on in the rigidbody2d component in the inspector.

there is a dropdown list next to the label Interpolate. By default its set to none. Change it to interpolate.

the optical illusion is the exact opposite - you notice the fact that interpolate has not been set the fewer objects there are in the scene.

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.

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

17 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

Related Questions

even just cubes moving seems choppy 1 Answer

Unity3D Choppy Camera Motion 3 Answers

mesh looks broken on iphone 2 Answers

Choppy on iPhone only... 1 Answer

smooth transitions for Rigibodies objects on iPhone and iPad 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