- Home /
How to use several colliders in the same object?
Hi,
I would like to implement a petting mechanic similar to this but I can’t find any relevant info online:
So dragging the mouse over different parts of the pet’s body will have different effects. My question is how can unity detect which parts of the pet is the player touching using mouse drag? Do I have to use several colliders on the same game object or is there any easier way?
Thanks!
Answer by Bunny83 · Mar 19 at 09:11 PM
Well, you usually would use several gameobjects which with its own colliders to represent the different parts.
Your answer
![](https://koobas.hobune.stream/wayback/20220613054402im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
OnMouseDrag, object getting dragged goes through collider instead of stopping 0 Answers
How to make different actions using OnMouseDrag with two different colliders on one Game Object. 0 Answers
Collision detection without effects and without triggers 1 Answer
Animator overriding collisions? 0 Answers