Nargis
Nargis

Reputation: 769

Run different Animation on different touches

I've several animations which I want to run on touch of different body parts in unity. Like when arm is being touched , I want to run arm animation and when leg is touched , I want to run leg animation. How I know that which part of body user have touched?

enter image description here

I assigned tag to different parts and applied switch case to them. But I always get same tag , which is of main base model. Is there any problem in Box collider or in Rig setting?

Upvotes: 3

Views: 104

Answers (1)

Nargis
Nargis

Reputation: 769

My problem was that , I've attached a single collider to main object instead of adding colliders to components of model.

Upvotes: 1

Related Questions