Compound Colliders. AND rather than OR

Basically, I want to make a cylinder collider (to model a tractor wheel, I want it to be able to roll but also fall onto its side). I was wondering if it would be possible to combine a Capsule collider with a Box collider, the box collider being greater than the radius of the Capsule, so just used to cut the ends off. So the collision would only happen when Box AND Capsule were true, rather than Box OR Capsule like in a standard compound collider.
Would this be possible?

No, but also you can’t really model a wheel that way anyway since the capsule collider can’t have the height be less than the radius. You can make a convex mesh collider in the desired shape though.

–Eric

Thats why I was wondering if you could use a box (that would be thinner than the capsules height) to make a slice through the capsule collider. So the area that the box AND capsule contained would be a cylinder. I think I could write a trigger collider that this worked for, the trouble is I want it to use the rigid body physics… Guess I will have to have a play with the mesh colliders and see if the performance hit is acceptable…

Theoretically, barring unforeseen code interactions, you could use a set of nested if-statements as opposed to a compound collider. So we check if the first one is true, then we check the second one. It would probably spiral out in to complexity quickly, but would work on a fundamental level.

Oh, you want CSG. No, nothing like that is supported.

–Eric