Adding mesh collider to human character
Hi,
I want to detect the exact UV coordinate of the raycast hit to a human character. I know mesh colliders are very costly things, so my strategy is as following:
create the character with a normal collider or maybe a ragdoll
Let the game run with this collider only.
If there is a raycast hit to the human's normal collider add a temporarely mesh collider.
Do the raycast again now against the mesh collider
Find the UV coordinate
remove or deactivate the mesh collider
But I have problem adding a mesh collider to a human figure at all. Even in the editor. For testing I use Mister Necturus' Adam prefab, at first without any animation component. But the mesh collider is not at the exact same position as the body itself. See picture.
In the shown picture the collider is added to the Adam_body component. If I put it into the Adam_BasePrefab, the collider lay flat on the floor with it's midpoint at the feet of the character.
P.S.: Sorry for the bad layout of the post. I don't know, how to add line breaks in the forum editor. The double space thing does not work. :-(