collider and trigger on the same game object

Hi all, I need an help.

I need to create a gameObject with the following behavior:

  1. When it collides with objects of type A, the result is a physic collision (so a typical Collider works)
  2. When it collides with objects of type B, the result is NOT a physic collision, but it is something custom, (for example the 2 objects keep they velocity, but change color or size…), so a trigger could work.

I’ve no idea how i could join the 2 behaviors in one game object.

What do u think?

Thanks so much!

it’s likely what you need is the PHYSICS LAYERS system

this is a basic aspect of game engineering, and is very simple to use in Unity3D.