0
\$\begingroup\$

I assigned two colliders to one GameObject. Both are different sizes. I am doing operations with Trigger messages.

Diagram showing colliders that should interact

I want this Trigger function to work for only colliders 1 and 3, but not collider 2.

\$\endgroup\$
2
  • \$\begingroup\$ This looks like a problem you can solve with collision layers to filter which colliders generate collision/trigger messages. How have you tried applying this to your situation so far? \$\endgroup\$
    – DMGregory
    Commented Jan 19, 2022 at 22:21
  • \$\begingroup\$ I have answered the same question in this \$\endgroup\$
    – Tien Hung
    Commented Jan 15 at 10:24

1 Answer 1

0
\$\begingroup\$

I gave the number 1 collider to the child gameobject and set it with the collison layer and I solved my problem.

\$\endgroup\$
1
  • \$\begingroup\$ Can you explain your solution in more detail, so that it can help future readers who do not have as clear an understanding of the system as you do now? \$\endgroup\$
    – DMGregory
    Commented Jan 19, 2022 at 23:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .