I’m trying to check a colliders tag but I keep getting this error:
error CS1061: ‘Collision’ does not contain a definition for ‘Tag’ and no accessible extension method ‘Tag’ accepting a first argument of type ‘Collision’ could be found (are you missing a using directive or an assembly reference?)
here’s the code
void OnCollisionStay(Collision other) {
if (other.Tag == "Ground")
{
isGrounded = true;
} }