How to check if a 3D point is inside any collider?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jaxin

Hi, I need to check whether a 3D point (Vector3) is inside any collider or not. In 2D is easy with the function Physics2DDirectSpaceState.intersect_point()
Why there is not such a function 3D? Is there any other way how to easily do it?

:bust_in_silhouette: Reply From: hammeron

PhysicsDirectSpaceState.intersect_ray

I need point, not a ray.

jaxin | 2019-02-08 05:59