Answer the question
In order to leave comments, you need to log in
How to find out if objects intersect?
How to find out that objects intersect. For example, I have 2 objects and they move, how to find out that objects have begun to intersect.
Answer the question
In order to leave comments, you need to log in
If everything is not bad with English. then read this
https://docs.unity3d.com/Manual/CollidersOverview.html
especially important to you there will be signs "what intersects with what"
And so, moving objects should have some sort of colliders.
then in the script you can use
https://docs.unity3d.com/ScriptReference/Collider....
and similar OnCollisionExit , OnCollisionStay
or use triggers if you just find out about the intersection, ala "touched each other"
with collisions there inside there will be more information, for example, intersection points and the like.
https://docs.unity3d.com/ScriptReference/Collision.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question