Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
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 which generated 10,000 particles at a time, and had no lag. I don't believe this is lag, it just looks choppy. This 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 this 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

Looks totally fine to me, have you tried this on different computers? I'm running a Dell laptop with an i7 and chrome browser. I dont see any issue with the smoothness of the ball.

avatar image Benproductions1 · Mar 21, 2013 at 09:55 PM 0
Share

Neither do I

avatar image Strigop · Mar 21, 2013 at 09:57 PM 0
Share

I have tried it on several computers. Is it maybe an optical illusion? I find the longer that I stare at it the more I notice some choppiness. $$anonymous$$aybe I am going crazy...

avatar image Benproductions1 · Mar 21, 2013 at 10:13 PM 0
Share

Do not post responses to comments as answers to questions! ALso can you describe the choppiness in more depth?

avatar image sparkzbarca · Mar 21, 2013 at 10:20 PM 0
Share

ditto here for not choppy. Looks fine to me

I use ATI boards though

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 things, we have come to the conclusion that a lot of responses are correct. We believe this 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 this 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. This 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 this 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 which cause a distraction. This is my theory along with some other users who responded above. Thank you everyone for your quick help and assistance, and hopefully this thread will help others searching 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

This should be marked as corrected and stickied forever. I don't know that I've ever seen the 'stuttering movement' question answered satisfactorily before!

avatar image Strigop · Mar 27, 2013 at 07:43 PM 0
Share

Thanks! I am glad to hear that this could help others. Thank you everyone for your responses and for helping us figure this issue out. How do I mark it as corrected?

avatar image Loius · Mar 27, 2013 at 07:44 PM 0
Share

Oh, sorry, as "answered". The little check mark by the answer, below the thumbs-up, number, thumbs-down icons. Stickying isn't a thing that exists on Answers, but if it did, I'd sticky this. :)

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.

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

Lighting is making my scene look crazy/spikey/broken. 2 Answers

A better way to do jumping? 2 Answers

choppy editor with inspector visible 1 Answer

Unsmooth vehicle-following camera 1 Answer

2D Collision Avoidance & Smoothly rotating game object 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