Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 777
Nargis Avatar asked Nov 26 '25 07:11

Nargis


1 Answers

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

like image 124
Nargis Avatar answered Nov 28 '25 20:11

Nargis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!