today someone in the german Unity forum asks how best to pick up an item in Unity. It's about which animations have to be played and how does one accomplish that the character actually pick up the item?
The following way was discussed
I would play an animation that is similar to a pick up animation. If necessary, you can also just take an idle animation. In addition, I would use IK to move the left or right hand to the target and move the body (also over IK) toward the target. If you do it completely over IK, then the character bends almost completely from the hip and bends the upper body. I suppose for a better animation you should find an animation in which a character goes to his knees and then put the IK over it.
I ended up using an pickup animation. This animation starts by pressing a key and creates a transition from the idle animation to the pickup animation. After that IK has been activated. The IK bends the entire body in the direction of the pickup goal and additionally the arm bone was moved to the pickup target.
I've fixed a few minor errors in grip accuracy and animations. Here's the newest version:
Remove ads and support GameDev.net for only $3. Learn more: The New GDNet+: No Ads!