I am attempting to only have the collision continue when contacting the Player (the parent with the rigidbody), directly; and ignoring collisions with the child (a sword). the sword is tagged weapon, and the player with player.
I have searched, and cannot find a sufficient answer (C#)
void OnCollisionEnter (Collision col){
Debug.Log("boop P" + playerNumber);
if (col.collider.transform.tag == "Player") {
-stuff happens-
}
}
This is driving me crazy and I need sleep, please help.
Edit - I solved it after ages, with a simple thing called ContactPoint.otherCollider