Manual collision check

Given two colliders – ones, in fact, which have no rigid body and are marked “static” and “trigger” – is it possible to manually check for overlap between them? I guess I could unstatic them and give them rigid bodies and see what happens, but ideally I’d like to do this during Start(), so that’s not an option there. I suppose I could implement the collision test myself, for the collider pairs I need, but I’d really like to avoid that if possible. Any clever ideas?

Manual collider checks are done via two static functions…Physics.OverlapSphere will return an array of the colliders touching the caller object and Physics.CheckSphere (quicker) is a bool that indicates overlap/contact exists.

You can use Rigidbody.SweepTest to check manually for collisions. I’m not sure if collisions with triggers are detected as well, but it’s worth a try.

Collision detection is done by the physics system. Colliders are pure passive objects. Only rigidbodies can perform collision tests.