I’m trying to build a demo for a game that is like Nintendogs, where you interact with virtual animals. You pat these animated creatures, stroke their backs, etc.
Let’s say I have virtual hands, how can I have them transverse across the animals mesh? Keep in mind these animals will be animated.
For example, if I click a dogs head, the hand will move towards the head, if I drag the hand up and down, the hand will move towards those position, keeping close to the mesh and respecting the animal’s head shape
I already have the IK set up, what I need is to know:
1.) where in world space the target is
2.) hands transverse through the mesh
3.) the ideal rotation for the hands
Just to be clear, just finding the position of the target in world space is not enough, the hand needs to move across the mesh. For example, Let’s say I click a cylinder, the hand goes towards the cylinder, if I hold the click down and move my mouse, the hands will move across its surface including moving towards areas concealed from the camera
any ideas?