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 Alanimator · Aug 23, 2013 at 06:04 PM · cameragpu

How to Stop GameObject(character) from shaking

I had believed that having multiple large gameobjects with thousands of verts and setting the camers "Far" Clipping Plane to over 2000 would cause more gameobjects to be rendered at any one time during gameplay and that it may be the cause of the shaky game .

or having objects scaled too large ....

But after removing all my gameobjects and only leaving the player in the game but when i run the game my character ... which is a spaceship still shakes while flying.

Could too many ignored errors in my game cause this ?

here is the flight simulator pack from which i got the codes for the ships motion and camera motion script http://www.4shared.com/file/ESfLLhBa/flight_engine.html

Comment
Add comment · Show 12
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 meat5000 ♦ · Aug 23, 2013 at 06:11 PM 1
Share

Sounds like some kind of bugged movement tracking. Some ping-pong motion occurs when a model never reaches its 'at rest' variable values. Go over your motion script and find places where motion gets overridden

avatar image Alanimator · Aug 23, 2013 at 06:29 PM 0
Share

thanks, that sounds about right . I will look over the motion script again

avatar image robertbu · Aug 23, 2013 at 06:59 PM 1
Share

Often shaking is caused not by player movement but by camera movement. Having camera movement code executed in LateUpdate() often fixes these problems.

avatar image Alanimator · Aug 23, 2013 at 07:50 PM 0
Share

here is the pack with the game i'm trying out http://www.4shared.com/file/ESfLLhBa/flight_engine.html i am using the movement script and camera motion script from the pack in my videogame on my camera and my space ship. if you all a a large gameobject into this pack and run the game you will see the shaking .

avatar image whebert · Aug 23, 2013 at 08:03 PM 1
Share

Shaking could also be caused by placing your objects very far away from the scene origin (0,0,0) since Unity uses single precision vectors. Since you mention your character is a spaceship, are you placing it "out in space" so to speak, using very large X,Y,Z values? Doing so could cause the object to appear to shake (called spatial jitter).

Show more comments

3 Replies

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

Answer by Alanimator · Aug 26, 2013 at 01:54 AM

For others who have this problem there are a few possible causes .

(1) the motionscript on your space ship return to its (0,0) position overriding the rest position value which in my case is (0,0,0). you will need to ensure that you smoothly return to rest position after moving through any angle .

(2)you need to check the follow script on your camera, executing the camera follow script in LateUpdate may help.

(3) the issue is caused by spatial jitter which is caused by pacing objects too far way from the (0,0,0) of the scene or creating rather large gameobject with massive scale values.

Comment
Add comment · Show 1 · 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 j-swan · Nov 14, 2013 at 06:40 AM 0
Share

Thanks for this, I had no idea what was causing it for me, but once I changed my camera to LateUpdate I was fine. What exactly is the mechanism behind LateUpdate that makes it work better?

avatar image
1

Answer by gsteigert · Nov 03, 2016 at 02:13 PM

Using LateUpdate for updating the camera position solved the issue for me.

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
avatar image
0

Answer by Righteousice · Jan 11, 2021 at 07:57 PM

LateUpdate worked here too. I knew it was an easy fix.

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

20 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

Related Questions

Why does rotating a camera with a rigid body cause the GPU extra work? 0 Answers

Shader to a Camera 1 Answer

How to make camera position relative to a specific target. 1 Answer

how do i make first person character rotate left and right along with camera? 0 Answers

iTween.ShakePosition freezes Rotation 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