- Home /
Excluding some physics collisions
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.
Answer by FLASHDENMARK · Mar 31, 2012 at 06:47 PM
Well, you could use Layer-Based Collision Detection to make some object not collide with objects with a specific layer.
Answer by Thom Denick · Mar 31, 2012 at 06:47 PM
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.
Your answer
Follow this Question
Related Questions
Camera gets flung off of the map when the player collides with certain objects. 0 Answers
Velocity data from OnCollisionEnter is delayed (incorrect) 3 Answers
Rigidbody necessary to use collision detection 0 Answers
Avoid Player bouncing when colliding with objects 3D 1 Answer
Removing bump when going through two adjacent colliders 2 Answers