I know this sounds simple, but I can't figure out how to tell if a GameObject is currently colliding with another object in Unity. I've looked online, but can't find any tutorials or answers that work.
Also, what's the difference between a Collision and a Collider?
My dilemma:
I have a third person controller set up and I'm trying to give it the ability to wall jump. There is already an isGrounded function, so I just need to test if I'm hitting anything other the the floor, and it will wall jump backwards.
I've already tried:
if (this.OnCollisionEnter){
...
}
if (Collider.OnCollisionEnter){
...
} Wrong use.
I now tried:
function OnCollisionStay(){
Debug.Log("Collision");
}
I checked my logs and my console, but still can't find anything.