Collider colliding with itself

void OnCollisionEnter(Collision other) {
GameObject otherGameObject = other.gameObject;

		if (otherGameObject == gameObject) {
			Debug.LogError("WAT");
			return;
		}
		
		if (otherGameObject == player && bDamageOnTouch) {
			player.GetComponent<HealthController>().TakeDamage(damage);
			bMoving = false;
			timerMovement = timeToMove;
		}
    }

alt text

Wat

are you trying to check for tag here?

if (otherGameObject == player)

what is player supposed to be? string or actual previously defined GameObject?

if its a tag then player should be a “string”

otherwise if player is a name of gameobject then you should compare using the .name property which is a string