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 animationanalyst · Sep 12, 2013 at 11:32 AM · c#mecanimikgrab

How to grab, pick and place an object to other location using Mecanim IK Script

Hi,

I have learned about the script to reach an object in the unity using IK of mecanim, but my requirement is listed below:

**1) Need to grab an object in the unity editor

2) The object needs to come along with the character

3) Then the character have to place the object anywhere in to the scene.**

I have checked the links:

**https://www.youtube.com/watch?v=Xx21y9eJq1U

http://docs.unity3d.com/Documentation/Manual/InverseKinematics.html**

but not helping, Can anyone please put your suggestions to solve this issue. Thanks

Comment
Add comment · Show 1
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 Eco-Editor · Mar 20, 2017 at 01:09 AM 0
Share

Hello all!

This is exactly what my project needs! Amazing! Any tutorials on this subject? Going to try implement this Thanks @skalev

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by skalev · Sep 18, 2013 at 07:57 AM

I'm not sure what you mean by "grab object in the editor", but aside from that you can:

  1. Create an IK script on your character, similar to the one in the demo.

  2. Activate the IK based on some trigger (entering the range of the object or what not).

  3. Lerp the IK weight until it reaches 1, which means you are at the object position.

  4. (optional) play some grab animation.

  5. Parent your object to the hand, and start Lerping back the weight to 0 (this will have the character holding the object, but now it will just follow your animation).

  6. Animate you character moving, the object will just follow.

  7. Start the IK lerp again, this time with the requested position as the goal.

  8. when it is at 1, release the object (unparent), and play any other animations you want.

  9. Lerp the weight back to 0, and turn of the IK control.

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 Eco-Editor · Mar 29, 2017 at 07:32 PM 0
Share

What would be the best way to add a grab animation to the process?

Would that be to use masking? I put some animation but it's very jumpy, and at what stage should the animation play?

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

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Script only makes character run forward 1 Answer

How to access Blend Tree "speed" in Mecanim from C# 0 Answers

Mecanim, Inverse Kinematics, and the HeadLookController 0 Answers

How can I access Human Avatar bone and muscle values from a script 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