Hi, I would like to make this animated 3D hand into my cursor: Animated Hand Cursor | 3D | Unity Asset Store
It has a prefab of the hand which I can drop to scene, but I don’t know how to make it follow my cursor?
Hi, I would like to make this animated 3D hand into my cursor: Animated Hand Cursor | 3D | Unity Asset Store
It has a prefab of the hand which I can drop to scene, but I don’t know how to make it follow my cursor?
I don’t think Unity out of the box supports animated 3D cursors, so how this asset works will depend on how the included script for it does its magic. Open the included demo scene to see how it is intended to be used. You can also see if the included script is commented. If you still have trouble, try contacting the developer.
if you just want to make it follow mouse position,
can convert mouse pixel coordinate into 3D coordinate, and then move hand to that:
or if its 3d game, can do raycast from mouse position and move hand there (can also take offset from the hit position so that hand doesnt go inside it)
I found this piece of code from google and pasted it into the hand code, the hand follows the cursor. Is this a good method?
{
Vector3 temp = Input.mousePosition;
temp.z = 25f; // Set this to be the distance you want the object to be placed in front of the camera.
this.transform.position = Camera.main.ScreenToWorldPoint(temp);
}