Physics.CheckBox ?

Hi

I have a need in a script to check if a box is specifically colliding with this other collider.

You can do collider.Raycast(), which does a raycast check specifically against that collider.
You can also do Physics.CheckSphere or Physics.CheckCapsule, but we don’t have a Physics.CheckBox. Anyway, Physics.CheckSphere of CheckCapsule wont perform specifict check against one single collider, so i kind if have some requests here.

Here goes some requests for next unity updates :

Collider.CheckSphere(point, radius) ← Check the specific collider for collision with the sphere
Collider.CheckCapsule(start, end, radius) ← Check the specific collider for collision with the capsule
Collider.CheckBox(min, max) ← Check the specific collider for collision with the box
Collider.CheckCollision(collider) ← Check the specific collider for collision with the other collider(any)

The point is, i dont want to use OnCollisionEnter() and such, I really would like to call these just like we call raycasts. I’m pretty sure unity already has these functions implemented in their physics code somehow and somewhere, just make a copy of it into collider and make it public so we can use?
The check between two specifict colliders is very helpful and should be a lot faster than checking every collider.

Until we get this, is there some way around it?

Thanks!

writing code.

All of what you suggested is easily do-able with existing API.