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
0
Question by Digital-Phantom · Jan 13, 2015 at 09:40 AM · movementanimationsaxiskeyframe

Animation Co-ordinates not being followed exactly(Solved)

When trying to animate an object the co-ordinates I input are not being followed exactly.

As an example... I want to move a cube 5 units along the Z axis, wait 2 seconds. then have it move back 5 units (to where it started)

So I set my keyframe to move 5 units/over 2 seconds (5 units along z axis) Set my 2nd keyframe, then I set my 3rd keyframe 2 seconds after that with 'no movement' lastly I set my 4th keyframe back to the original position. (-5 units along z axis)

Now comes my problem... Instead of the cube moving 5 units and stopping, its actually moving 5.36.... units, then travelling back.

Why doesn't the cube come to a complete standstill? It overshoots my 5 unit limit and gradually comes to a stop. It's almost like its bouncing backwards and forwards not coming to a nice crisp halt?

Any ideas guys ???

Comment
Add comment
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

1 Reply

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

Answer by Digital-Phantom · Jan 13, 2015 at 10:18 AM

OK, managed to solve this, but I'll explain for anybody who gets the same issues.

At the bottom of your animation tab (you need to have your object selected) you will see 2 tabs, 'Dope Sheet' and 'Curves'. Click on the curves tab and you will see a wavy line that represents your objects movements.

(You can watch the animation in this window to get an idea oh how your object is moving). Anyway, choose the keyframes that you want your object to be stationary between (in my case the keyframes at 2 seconds and 4 seconds)

Right click on the first keyframe and you will see some more options. Tick/highlight the 'FLAT' option and you will see the curve has been made flatter at that keyframe. Repeat this at your second keyframe and you will see the curve between those two points is now completely flat.

Run your animation again and you will see there is no bounce or over shooting movement. Your object will move to that keyframe, come to a stop and wait until the next keyframe before moving again.

Anyway, hope this helps

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

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

Related Questions

Axis Issue 1 Answer

Devil May Cry style Lock-on Movement? 2 Answers

How to change the sprites in an animation? 1 Answer

Lock ALL z-axis of project 2 Answers

How to make 2D Movement with only 1 Axis at the same Time,How to make 2d Movement on 1 Axes at the same time? 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