• 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 devitydev · Mar 02, 2015 at 12:03 PM · animationvibrationfloating pointsad

My character vibrates.

My character vibrates when it gets too far from 0,0,0 because of floating point acuracy, I can't go more than 1000 without it vibrating like crazy. Is there any solution to this problem?

Comment
Add comment · Show 3
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 H3lls7rik3r · Mar 03, 2015 at 08:23 AM 0
Share

pls post the Code the Problem belongs to. What are you trying to do? How do you move the character?

avatar image devitydev · Mar 03, 2015 at 01:05 PM 0
Share

There is no code... I'm using an animation to move a standard camera from 0 to like 5000. It's a floating point accuracy problem.

avatar image devitydev · Mar 04, 2015 at 10:25 AM 0
Share

If I scale everything down it causes more issues than it solves. Like I can't see anything that Is within a reasonable distance to me because I can't set the near clip plane lower than 0.1. argggg... frustrating!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Rtyper · Mar 03, 2015 at 01:23 PM

You've sort of answered your own question there - the problem is floating point error, and there's no way around that. Your best bet (if you're using an animation) would probably be to scale everything down, though you'd need to remake your animation as I don't think animation values scale down properly.

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can I make animations snap to a frame? 2 Answers

Player vibrates back and forth when moving 2 Answers

How to select an animation clip by index number? 7 Answers

Why is it impossible to Copy/Paste keyframes in Unity's Animation Editor? 1 Answer

Can the animation editor create local rotational data? 3 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges