I am shooting a bullet NOT using ray cast. I use rigid body.addforce and when the bullet hits a wall, (a BoxCollider2D), I need to know the exact location so I can place a gameObject at that location. PLEASE HELP!!! Thanks…
In the OnCollisionEnter2D() function, get the contacts:
void OnCollisionEnter2D(Collision2D col){
Debug.Log(col.contacts[0].point);
}
Note there may be more than one point of contact.