I have 3 object all have a collider and rigidbody. A, B and C.
A and C can physically interact
B and C can physically interact
A and B can’t physically interact and should be able to go through each other
Is this possible to do?
thanks.
I have 3 object all have a collider and rigidbody. A, B and C.
A and C can physically interact
B and C can physically interact
A and B can’t physically interact and should be able to go through each other
Is this possible to do?
thanks.
Use layers, or Physics.IgnoreCollision.
Well, you could use Layer-Based Collision Detection to make some object not collide with objects with a specific layer.
This is really easy to do via the Layer Collision Matrix which is found in Edit-> Project Settings → Phyiscs.
Create 3 layers for your A, B, C objects, then set up how they interact via the grid.