- Home /
How to get a collider from point?
Is there a way to get a collider that contains some certain point? Let's say I have a point Vector3(1f, 2f, 1f), I want to check if this point is inside some collider and if it is get reference to this collider.
Comment
Answer by Casiell · Nov 07, 2018 at 10:00 AM
For 3D you would be using Physics.OverlapSphere and for 2D you have Physics2D.OverlapPoint
Your answer
Follow this Question
Related Questions
Find closest point of one object 3 Answers
Angle between 2 vectors/points on a local axis 1 Answer
best way to check if a Vector3 point is within any of multiple colliders 1 Answer
raycastHit.point - How do I make it ignore colliders? 1 Answer
How do I find whether a point exists within the volume of a (trigger) collider? 0 Answers