- Home /
"if(Touch )" statement in Unity script? Is it Possible?!
I only know how to sense collision with:
if(col.gameObject.tag=="b1")
but how do I sense when the two objects are "Touching" each other?
Comment
Answer by mpavlinsky · Jan 04, 2012 at 08:43 PM
You can override the OnCollisionStay function of a MonoBehaviour to get updates on objects that remain touching the object for more than a frame if that is what you're looking for.