So my project for today is to finish my grab function for my player character. The issue I am looking to tackle is the variable lengths an item can be to still be within the grab range.
Example picture of what I mean:
In all three instances, the red ball/apple is within grabbing range of the character, but all three would be different animations considering the different extension/bending needed in the arm.
To handle this, I am thinking about trying to extract the world position of the generic target object and then passing that information to the hand of my character and making a location keyframe. Then just animate the fingers and such to wrap around the object sufficiently. Hopefully, if it goes as expected it will make it so one animation can serve as many.
What do you guys think of this approach, think it will work? Think of a better one I should try instead?