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
2
Question by Uriel_96 · Apr 19, 2011 at 11:58 PM · animationjavascriptdistancechange

Change animation depending of distance

Lets put some examples to explain what I want. Suppose the player needs to take an object and you have the animation that is for take the object, but the problem would be that if you do the animation when you get close of the object, the hand doesn't goes to the object you will need to say the hand/arm to go specific to the object but doing the animation as you can see in http://www.youtube.com/watch?v=Ueq8W1kkla4 at 6:18

Another example, is in http://www.youtube.com/watch?v=Ueq8W1kkla4 at 7:20, as you can see it obviously use an animation, but there are places where the distance is between the 2 walls is different that means that the animation changes(change means that is not the same animation because you change the rotation of the legs), so my question is how I can do this kind of stuff.

Thanks :)

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
1
Best Answer

Answer by Bunny83 · Apr 20, 2011 at 12:33 AM

Well, your first example looks like a fix animation to me. Right before the "pick up" animation starts his position is "corrected" so animation fits the the object.

To calculate something like in your second example you would need some kind of an IK solver, but that's a quite heavy math problem. Maybe you can utilize the locomotion system. Rune Skovbo Johansen shoule be able to answer that question (since he developed it :D ). A lot AAA games have developed quite advanced animation systems. For example in Spore almost all animations are procedurally generated. They just uses some base movements but since you can "rig" your creature in game you can't use fix animations.

Comment
Add comment · Show 2 · 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 Uriel_96 · Apr 20, 2011 at 12:47 AM 0
Share

thanks, I would like to talk with Rune Skovbo Johansen to see how its possible all of this, but think there is not a personal question to someone(I think) so I think I will see how works the locomotion system, so really thanks :)

avatar image Bunny83 · Apr 20, 2011 at 01:06 AM 0
Share

Yeah, that's a feature that would be great: personal messages. But i guess it's better without. The people would start to ask questions behind UAs back so the community would suffer...

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

No one has followed this question yet.

Related Questions

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

How to create an animation hands (or script) to pick-up a cup from the table in 3ds max or maya or from direct unity! Please help!! 2 Answers

I can't script enemy animation 0 Answers

Get distance between moving object and a static one? 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