🤔

Physics queries (3D): General#

Use the correct class#

You must be using functions from the Physics class. Physics2D calls will not interact with 3D physics.

If you are calling a query like collider.Raycast(... from a collider, then you are using a method that can only hit that single collider.
Make sure you understand this, or instead, use the static method Physics.Raycast that queries all the colliders in the scene.

Issues with colliders#

Issues with setup#

Check the documentation for the function use are using. Many have notes on edge cases where behavior may be undefined or default.

Examples#


I am still having problems with my query.